Hi everyone!
I was making a Windows 32 API, and I ran into some strange thing. When compiling, no error popped up, but when I clicked the About button in my program, or any other button that should pop up a dialog box, nothing showed, and my window was unresponsive.
However, when I first did ANY other action, like draw some lines in my window, ANYTHING, everything went right... All messages popped up, just like they should.
Please help a little here, I've included some of my code. (My Dialog Box, and my whole file in the attachment.)
Thanks in advance!
case IDM_ABOUT:
int iMes = MessageBox (hwnd, L"Versie: 3.0", L"About", MB_YESNO | MB_ICONQUESTION);
switch (iMes) {
case IDYES:
MessageBox (hwnd, L"YES!", L"YES", MB_ICONASTERISK);
break;
case IDNO:
MessageBox (hwnd, L"NO!", L"NO", MB_ICONASTERISK);
break;