- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
2 Posted Topics
hi, I develloping an engine but I have an small error and can't find it... I want the user the say with icon he wants to use for his program : [CODE] WNDCLASSEX wndclass; // ... wndclass.hIcon = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIcon())); wndclass.hIconSm = LoadIcon(m_hInstance,MAKEINTRESOURCE(GetIconSmall())); // ... void SetIcon(WORD icon) { m_wIcon = … | |
Re: [CODE] case WM_COMMAND: switch(wParam) { if(IDC_Server) { SendMessage(hwServer, BM_SETCHECK, 1, 0); SendMessage(hwClient, BM_SETCHECK, 0, 0); SetWindowText(hwStart, "Listen"); } else if(IDC_Client) { SendMessage(hwClient, BM_SETCHECK, 1, 0); SendMessage(hwServer, BM_SETCHECK, 0, 0); SetWindowText(hwStart, "Connect"); } else if(IDC_Quit) { EndDialog(hWndDlg, 0); return TRUE; } } } return FALSE; } [/CODE] an switch stucture works … |
The End.