Re: popup menu with item checked
"Konstantin Mironovich" <[email protected]> Tue, 31 Jul 2012 08:55:50 +0400
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Organization | ixbt.com |
| Message-ID | <D6D9D92F9D9E4625A5CB2585B27A48E8@KLM64> |
menu.AppendMenu(MF_STRING, COMMAND, "string"); menu.CheckMenuItem(COMMAND, MF_BYCOMMAND|MF_CHECKED); -km ----- Original Message ----- From: false To: [email protected] Sent: Tuesday, July 31, 2012 7:42 AM Subject: [wtl] popup menu with item checked CMenu menu; menu.CreatePopupMenu(); menu.AppendMenu(MFT_STRING|DFCS_CHECKED|DFCS_BUTTONCHECK, 1, "name1"); menu.AppendMenu(MFT_STRING, 2, "name2"); menu.AppendMenu(MFT_STRING, 3, "name3"); menu.AppendMenu(MFT_STRING, 4, "name4"); menu.TrackPopupMenu(TPM_LEFTALIGN|TPM_RIGHTBUTTON, point.x, point.y, m_hWnd); ---------------------------------------------i want to create a popup menu with the first item checked, the above code can createa popup menu ,but i don't see any menu item checked, so , what is the problem? thanks. [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/