the problem is that no matter what option i pick on my menu i always get 1 im sure its most likely a problem with my program flow...Code:case WM_TRAYNOTIFY: { switch(lParam) { case WM_LBUTTONDOWN: { ShowWindow(hwnd,SW_RESTORE); }break; case WM_RBUTTONDOWN: { GetCursorPos(&pt); TrackPopupMenu(hPopupMenu, TPM_RIGHTALIGN, pt.x, pt.y, 0, hwnd, NULL); case IDMI_RESTORE: { MessageBox(0, "1", "1", MB_ICONSTOP | MB_OK); ShowWindow(hwnd,SW_RESTORE); }break; case IDMI_CLOSE: { MessageBox(0, "2", "2", MB_ICONSTOP | MB_OK); PostQuitMessage(0); }break; }break; } }
i know i need another switch for the nested cases but what am i supossed to use as the switch?