Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LRESULT CALLBACK WinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
- {
- if (msg == WM_COMMAND)
- {
- switch(wParam) //the ID is wParam
- {
- case ID_BUTTON:
- do_work();
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement