Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Shashikant_2006

@Shashikant_2006
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using CMFCMenuBar with CDialog
    S Shashikant_2006

    I am upgrading my VC6 app to new mfc feature pack, I have to add a CMFCMenuBar on a dialog box, I am able to add and display the menu bar, but none of its pop up menu items work.... All the menu items in dropdwn/popup menu in menu bar are disabled and not responding to any message... after adding message handler functions, anybody has any idea?? I am posting my code to create and display menubar (CMFCMenuBar) on a dialog box here. I have tried to put this code within OnInitDialog() as well as OnCreate() function of the dialog class. m_wndMenuBar is a CMFCMenuBar object decleraed in .h file. if (!m_wndMenuBar.Create(this)) { TRACE0("Failed to create menubar\n"); return -1; // fail to create } CMenu *menu = new CMenu(); menu -> LoadMenu (IDR_ITEM_MENU); m_wndMenuBar.CreateFromMenu(menu->GetSafeHmenu(),TRUE,TRUE); m_wndMenuBar.SetDefaultMenuResId(IDR_ITEM_MENU); m_wndMenuBar.SetWindowPos(NULL,0, 0 ,500,30,SWP_SHOWWINDOW);

    Never complain,never explain,just do your work.

    C / C++ / MFC c++ question

  • CMFCMenuBar menu manipulation problem.
    S Shashikant_2006

    use CMenu* pMenu = CMenu::FromHandle(mBar->GetHMenu()); where mBar is your CMFCMenuBar, now you can apply all the CMenu function on pMenu .

    Never complain,never explain,just do your work.

    C / C++ / MFC c++ help tutorial question

  • MDI Window List
    S Shashikant_2006

    Can you please tell me how to hide/delete the window popup menu from the main menu if I am working with Doc/ View application? Thats really urgent, I am using the code like CMenu *menuVault = this->GetMenu(); ::DeleteMenu(menuVault->GetSafeHmenu(),9,MF_BYPOSITION);//9 is the position of Wondows menu ::DrawMenuBar(::AfxGetMainWnd()->m_hWnd);, everything seems to be ok but menu bar is not getting refreshed or redrawn..... what could be worng????

    Never complain,never explain,just do your work.

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups