Hi, I created 2 Objects on a Win32 App Window. But every time:
Everytime I click on TEXT1, it pops up the "Clicked Text" messagebox twice, how do I make it pop up once?PHP Code:switch(msg){
case WM_COMMAND:
switch(LOWORD(wParam)){
case BUTTON1:
MessageBox(hwnd,"Clicked Button","",0);
return 0;
case TEXT1:
MessageBox(hwnd,"Clicked Text","",0);
return 0;
}
break;
default:
return DefWindowProc(hwnd,msg,wParam,lParam);
}





Reply With Quote