Click here to Skip to main content
15,849,678 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ok Pin
KellyR6-Jan-06 10:41
KellyR6-Jan-06 10:41 
GeneralRe: Ok Pin
sunit56-Jan-06 22:19
sunit56-Jan-06 22:19 
GeneralRe: Ok Pin
KellyR7-Jan-06 14:40
KellyR7-Jan-06 14:40 
GeneralRe: Ok Pin
David Crow6-Jan-06 10:47
David Crow6-Jan-06 10:47 
GeneralRe: Ok Pin
John R. Shaw6-Jan-06 19:02
John R. Shaw6-Jan-06 19:02 
QuestionHowto: creating a dynamic menu? Pin
cromag6-Jan-06 8:08
cromag6-Jan-06 8:08 
AnswerRe: Howto: creating a dynamic menu? Pin
nm_1146-Jan-06 14:39
nm_1146-Jan-06 14:39 
AnswerRe: Howto: creating a dynamic menu? Pin
Laxman96-Jan-06 19:50
Laxman96-Jan-06 19:50 
// The code fragment below shows how to create a new menu for the
// application window using CreateMenu() and CreatePopupMenu().
// Then, the created menu will replace the current menu of the
// application. The old menu will be destroyed with DestroyMenu().
// NOTE: The code fragment below is done in a CFrameWnd-derived class.

// Create a new menu for the application window.
VERIFY(m_NewMenu.CreateMenu());

// Create a "File" popup menu and insert this popup menu to the
// new menu of the application window. The "File" menu has only
// one menu item, that is, "Exit".
VERIFY(m_FileMenu.CreatePopupMenu());
m_FileMenu.AppendMenu(MF_STRING, ID_APP_EXIT, (LPCTSTR)"E&xit");
m_NewMenu.AppendMenu(MF_POPUP, (UINT) m_FileMenu.m_hMenu, "&File");

// Remove and destroy the old menu.
SetMenu(NULL);
CMenu* old_menu = CMenu::FromHandle(m_hMenuDefault);
old_menu->DestroyMenu();

// Add a new menu.
SetMenu(&m_NewMenu);

// Assign a default menu.
m_hMenuDefault = m_NewMenu.m_hMenu;



FAILURE is the first step towards SUCCESS

-- modified at 0:50 Saturday 7th January, 2006
AnswerRe: Howto: creating a dynamic menu? Pin
#realJSOP7-Jan-06 4:09
mve#realJSOP7-Jan-06 4:09 
GeneralRe: Howto: creating a dynamic menu? Pin
cromag9-Jan-06 5:55
cromag9-Jan-06 5:55 
GeneralRe: Howto: creating a dynamic menu? Pin
cromag9-Jan-06 6:19
cromag9-Jan-06 6:19 
GeneralRe: Howto: creating a dynamic menu? Pin
#realJSOP9-Jan-06 13:32
mve#realJSOP9-Jan-06 13:32 
QuestionVector of Strings simple problem PLEASE HELP Pin
Cursed Feanor6-Jan-06 8:05
Cursed Feanor6-Jan-06 8:05 
AnswerRe: Vector of Strings simple problem PLEASE HELP Pin
Roland Pibinger6-Jan-06 8:33
Roland Pibinger6-Jan-06 8:33 
JokeRe: Vector of Strings simple problem PLEASE HELP Pin
Cursed Feanor6-Jan-06 9:11
Cursed Feanor6-Jan-06 9:11 
AnswerRe: Vector of Strings simple problem PLEASE HELP Pin
David Crow6-Jan-06 10:43
David Crow6-Jan-06 10:43 
AnswerRe: Vector of Strings simple problem PLEASE HELP Pin
John R. Shaw6-Jan-06 19:26
John R. Shaw6-Jan-06 19:26 
QuestionTrying to get a bmp. to move with in boundries in a windows ap.... Pin
chadsxe6-Jan-06 7:05
chadsxe6-Jan-06 7:05 
AnswerRe: Trying to get a bmp. to move with in boundries in a windows ap.... Pin
KellyR6-Jan-06 7:34
KellyR6-Jan-06 7:34 
AnswerRe: Trying to get a bmp. to move with in boundries in a windows ap.... Pin
John R. Shaw6-Jan-06 20:05
John R. Shaw6-Jan-06 20:05 
QuestionAdding controls to a CTabCtrl Pin
Mark F.6-Jan-06 6:05
Mark F.6-Jan-06 6:05 
AnswerRe: Adding controls to a CTabCtrl Pin
#realJSOP7-Jan-06 4:12
mve#realJSOP7-Jan-06 4:12 
QuestionRe: Adding controls to a CTabCtrl Pin
Mark F.7-Jan-06 9:41
Mark F.7-Jan-06 9:41 
AnswerRe: Adding controls to a CTabCtrl Pin
#realJSOP8-Jan-06 4:14
mve#realJSOP8-Jan-06 4:14 
GeneralRe: Adding controls to a CTabCtrl Pin
Mark F.8-Jan-06 4:51
Mark F.8-Jan-06 4:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.