Hi everyone,
I have a program which has a dialog box as its main menu, and as such, my WinMain looks like this:
Code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
return DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAINMENU), NULL, MainDlgProc);
}
This means that I don't have a message loop and I don't register any window classes. However, on my dialog box, I want to have a button which launches a window when pressed (not another dialog box) and of course this window requires a message loop. So, my question is: is it possible to create a window from a dialog box? Where should I put the message loop?
Thanks!