Advertisement
Guest User

Untitled

a guest
May 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. LRESULT CALLBACK WinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
  2. {
  3. if (msg == WM_COMMAND)
  4. {
  5. switch(wParam) //the ID is wParam
  6. {
  7. case ID_BUTTON:
  8. do_work();
  9. break;
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement