Original Post
(using C++ Win32 API) Hello, I have one button in my window. I can't figure out how to make a MessageBox() show if you press this button. I named the HWND for my button hWndButtonSave. The closest I have gotten to figuring out if the button was pressed was creating a: case WM_COMMAND: break; inside of winproc. How can I tell if a certain button was pressed, and then do something (MessageBox()) when it is pressed? I ahve looked all over google, Win32 Tips, and other places and just can't find how to do this. Thanks, Progames25