Hello,
Is there a way to hide the menu bar at the bottom of the screen in dialog
box? I created a MFC dialog box application and put the following code in the
OnInitDialog function:
-- code snippet begin --
SHMENUBARINFO mbi;
ZeroMemory(&mbi, sizeof(SHMENUBARINFO));
mbi.cbSize = sizeof(SHMENUBARINFO);
mbi.hwndParent = GetSafeHwnd();
mbi.dwFlags = SHCMBF_HIDDEN;
// also tried using the SHCMBF_HIDESIPBUTTON flag with the HIDDEN flag
SHCreateMenuBar(&mbi);
-- code snippet end --
That didn't seem to work. It works when I created a Windows application and
put the code in response to the WM_CREATE message.
The other thing that would work for me is if I can draw over that menu bar
area.
Thank you in advance for your help.
----
mark