Please use code tags.
Code:
case WM_COMMAND:
{
HWND hCntrl;
WORD wId,wNotifyCode;
hCntrl=(HWND)lParam;
wId=LOWORD(wParam); /*cntrl id*/
wNotifyCode=HIWORD(wParam); /*notification msg*/
if (hCntrl && wNotifyCode==BN_CLICKED)
{
/*all button control 'click' msgs trapped*/
/*differentiate between buttons using id*/
switch (wID)
{
case ID_COMBO_BOX:
/*do stuff*/
break;
}
}
}
This information is detailed in the msdn description for WM_COMMAND and BN_CLICKED. You should probably read up on button controls, too.