Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. case WM_COMMAND:
  2.         {
  3.             int wmId = LOWORD(wParam);
  4.             int wmEvent = HIWORD(wParam);
  5.             switch (wmId)
  6.             {
  7.                 case 5:
  8.                 {
  9.                     WORD res1 = (WORD)SendMessage(radio1,BM_GETCHECK,0,0L);
  10.                     if(res1 = 1)
  11.                     {
  12.                         int pos = SendMessage(combo1,CB_GETCURSEL,0,0L);
  13.                         char text[32];
  14.                         SendMessage(combo1,CB_GETLBTEXT,pos,(LPARAM)&text);
  15.                         ListView_AddString(list, text);
  16.                     }
  17.                     WORD res2 = (WORD)SendMessage(radio2,BM_GETCHECK,0,0L);
  18.                     if(res2 = 1)
  19.                     {
  20.                         int pos = SendMessage(combo2,CB_GETCURSEL,0,0L);
  21.                         char text[32];
  22.                         SendMessage(combo2,CB_GETLBTEXT,pos,(LPARAM)&text);
  23.                         ListView_AddString(list, text);
  24.                     }
  25.                     break;
  26.                 }
  27.             }
  28.            
  29.             break;
  30.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement