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
M

mclpun

@mclpun
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hide & Show Menu bar dynamically
    M mclpun

    Thanks Serge, got it!:)

    C / C++ / MFC c++ question help learning

  • Hide & Show Menu bar dynamically
    M mclpun

    Hi All, I' m writing a Visual C++ MFC dialog-based program. I added a Menu bar uisng Insert->Resource-> Menu, not by writing code. Then, I tried to show and hide the Menu bar of a modal dialog dynamically. By writing the following code, I succeed to hide the menu bar. CWnd* pMain = AfxGetMainWnd(); if (pMain != NULL) { CMenu* pMenu = pMain->GetMenu(); while(pMenu != NULL && pMenu->GetMenuItemCount() > 0) { pMenu->DeleteMenu(0, MF_BYPOSITION); pMain->DrawMenuBar(); } } But how can I show the menu again? Please kindly help me! Cheers, hmc

    C / C++ / MFC c++ question help learning

  • Show and Hide the Menu bar dynamically
    M mclpun

    Hi Freind, Thanks. But I only successfully hide the Menu, but not showing it again. Do I just need to replace "pMenu->DeleteMenu(0, MF_BYPOSITION);" to "pMenu->AppendMenu(0, MF_BYPOSITION);" without changing other code? Cheers

    C / C++ / MFC c++ help question learning

  • Dynamically Show and Hide Title bar
    M mclpun

    Thanks for your help, k_dehariy! Meanwhile, how can I set the caption of the title bar dynamically?

    C / C++ / MFC c++ question

  • Dynamically Show and Hide Title bar
    M mclpun

    Hi All, I' m writing a Visual C++ MFC dialog-based program. I tried to show and hide the title bar of a modal dialog dynamically but didn't succeed? Could anyone kindly helps me? Thanks! Cheers, Jack

    C / C++ / MFC c++ 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