Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 3

2 Posted Topics

Member Avatar for Yourself

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 = …

Member Avatar for Yourself
0
345
Member Avatar for FTProtocol

[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 …

Member Avatar for FTProtocol
0
713

The End.