Line 122 of afx.inl
Kapgan
Posts
-
Checking drop down toolbar menu items -
Checking drop down toolbar menu itemsIt's a run-time error. It says debug assertion failure. I defined a pPopup named object and tried to make it hold the drop down menu, so that I can easily have access to other functions. But unfortunately I couldn't do this.
-
Checking drop down toolbar menu itemsI have a drop down menu on one of my toolbar buttons. I am having problem with checking menu items. If I use CCmdUI::SetCheck method, there is no problem, but I want to do this in a different way. Why does this code give error? int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; ... ... menu_tb2_btn1.LoadMenu(IDR_MENU_TOOLBAR2_BUTTON1); ASSERT(menu_tb2_btn1); pPopup = menu_tb2_btn1.GetSubMenu(0); ... ... return 0; } void CMainFrame::OnTb2btn1Item1() { // TODO: Add your command handler code here ... ... pPopup->CheckMenuRadioItem(0,3,1,MF_BYPOSITION); ... ... }
-
Initially visible dialog boxI had tried that. Actually I want to use the dialog box as a toolbar, that is why i want it visible. I have .cpp and .h files for the toolbar class derived from CDialog. I included the .h file in MainFrm.cpp. I also have CToolBarNew m_wndToolBarNew; in the protected section ofCMainFrame class. But it still gives compiler error: missing storage-class or type specifiers
-
Initially visible dialog boxHow do I make my dialog box initially visible with MFC?
-
Retrieving data from internetI want to make a program that can connect to internet and use up to date information without having to manually enter that information. How do I retrieve information such as a text in a table cell from the IE browser? Can I do that without programmatically openning the browser and/or downloading the whole page?