Question Multiples Dialog Box WINAPI32

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

nelson ortiz

VirtualProtect
Dank Tier Donator
Oct 25, 2016
25
3,243
1
I have a project that has done in .DLL, but I have 3 dialog boxes, IDD_DIALOG1 (the main) and I have 2 other dialog boxes IDD_DIALOG2 and IDD_DIALOG3, of which within the IDD_DIALOG1 he inserted 2 BUTTONS that I want to call Each dialog box, for example: BUTTON1 that when clicking open the IDD_DIALOG2 and the BUTTON2 open the IDD_DIALOG3.

C++:
#include "windows.h"
#include "resource.h"

HINSTANCE H_DIALOG1, H_DIALOG2, H_DIALOG3;

BOOL CALLBACK call_Dialogo2(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK call_Dialogo3(HWND, UINT, WPARAM, LPARAM);

BOOL CALLBACK call_Dialogo1(HWND, UINT, WPARAM, LPARAM);

BOOL CALLBACK call_Dialogo1(HWND hDialogo, UINT mensaje, WPARAM wParam, LPARAM lParam)
{
    switch (mensaje)
    {
        case WM_COMMAND:
            switch (LOWORD(wParam))
            {
            case IDCANCEL:
                EndDialog(hDialogo, false);
                break;

            case IDC_BUTTON1:
                DialogBox(H_DIALOG2, MAKEINTRESOURCE(IDD_DIALOG2), 0, call_Dialogo2);
                break;

            case IDC_BUTTON2:
                DialogBox(H_DIALOG3, MAKEINTRESOURCE(IDD_DIALOG3), 0, call_Dialogo3);
                break;
            }
    }
    return FALSE;
}
BOOL CALLBACK call_Dialogo2(HWND hDialogo, UINT mensaje, WPARAM wParam, LPARAM lParam)
{
    switch (mensaje)
    {
    case WM_COMMAND:
        switch (LOWORD(wParam))
        {
        case IDCANCEL:
            EndDialog(hDialogo, false);
            break;
        }
    }
    return FALSE;
}
BOOL CALLBACK call_Dialogo3(HWND hDialogo, UINT mensaje, WPARAM wParam, LPARAM lParam)
{
    switch (mensaje)
    {
    case WM_COMMAND:
        switch (LOWORD(wParam))
        {
        case IDCANCEL:
            EndDialog(hDialogo, false);
            break;
        }
    }
    return FALSE;
}
Im dumie :biblethump:
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods