Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case WM_COMMAND:
- {
- int wmId = LOWORD(wParam);
- int wmEvent = HIWORD(wParam);
- switch (wmId)
- {
- case 5:
- {
- WORD res1 = (WORD)SendMessage(radio1,BM_GETCHECK,0,0L);
- if(res1 = 1)
- {
- int pos = SendMessage(combo1,CB_GETCURSEL,0,0L);
- char text[32];
- SendMessage(combo1,CB_GETLBTEXT,pos,(LPARAM)&text);
- ListView_AddString(list, text);
- }
- WORD res2 = (WORD)SendMessage(radio2,BM_GETCHECK,0,0L);
- if(res2 = 1)
- {
- int pos = SendMessage(combo2,CB_GETCURSEL,0,0L);
- char text[32];
- SendMessage(combo2,CB_GETLBTEXT,pos,(LPARAM)&text);
- ListView_AddString(list, text);
- }
- break;
- }
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement