here's my code..
As soon as i run the program, the message "Button is Clicked" appears whether or not the button is pressed! Anything wrong with my code?Code:case WM_COMMAND:
switch(HIWORD(wParam))
{
case BN_CLICKED:
MessageBox(hwnd,"Button is Clicked","BTN WND",MB_ICONINFORMATION);
break;
}
return 0;
// Created a button...
CreateButton(hwnd,cs->hInstance,BS_DEFPUSHBUTTON,initRecArea(305,320,150,30),
IDBC_DEFPUSHBUTTON,_T("DISPLAY"));