How to load a menu into a project (ATL/MFC)
-
can anyone help me in how to load a menu to a button in a toolbar project either in ATL or MFC!!? and how to assign commands to those menu items!!?? ASAP please. regards:rose:
MFC does not support that. You must handle it: -Open YourProject.rc, find the following line
IDR_MAINFRAME TOOLBAR.... BEGIN BUTTON ID_FILE_NEW... BUTTON ID_FILE_SAVE... _add this line_ SEPARATOR SEPARATOR END
-In OnCreate(), use m_wndToolBar.SetButtonInfo(n,IDC_COMBO,TBBS_SEPARATOR, 100) -In CMainFrame, add a variable m_combo; -In OnCreate(), use m_combo.Create(...) Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.com -
MFC does not support that. You must handle it: -Open YourProject.rc, find the following line
IDR_MAINFRAME TOOLBAR.... BEGIN BUTTON ID_FILE_NEW... BUTTON ID_FILE_SAVE... _add this line_ SEPARATOR SEPARATOR END
-In OnCreate(), use m_wndToolBar.SetButtonInfo(n,IDC_COMBO,TBBS_SEPARATOR, 100) -In CMainFrame, add a variable m_combo; -In OnCreate(), use m_combo.Create(...) Hung Son A Vietnamese student i-g.hypermart.net dlhson2001@yahoo.comThanks a LOT Mr.Hung Son. But I'm sorry on my part to not to be clear first. My toolar is not for a Dialog based.... Sorry! ... I'm making an IE ToolBar, which doesn't consist of these CMainFrame, and above said functions. But what i could do is ... Thanks! .... i will certainly give it a try, as I got some idea how to proceed. Thanks Once again for taking some time. Regards Sanjeev