I have a button:
HWND done;
done = CreateWindow(
"BUTTON",
"Save",
WS_CHILD | WS_VISIBLE,
0, 175,
160, 100,
hwnd,
(HMENU)ID_BUTTON,
hInst,
NULL
);
When I do:
case WM_COMMAND:
if(hwnd, WM_COMMAND, (HMENU)ID_BUTTON, BN_CLICKED, 0, done)
to check if a button the button was clicked, it pops up the message box when I click the button but also when I click on an edit box. What do I do?