SHCreateMenuBar and SHFS_HIDESIPBUTTON

I've used SHCreateMenuBar on WM5.

If I wanted to change the menu items, should I use the following approach

 mb.hwndMB = NULL;  

 mb.nToolBarId = IDR_MENU1;
 SHCreateMenuBar (&mb);

....later....

 ::DestroyWindow (mb.hwndMB);
 mb.hwndMB = NULL;  

....later.....
 mb.nToolBarId = IDR_MENU2;
 SHCreateMenuBar (&mb);

Also, SHFullScreen (GetSafeHwnd(), SHFS_HIDESIPBUTTON) hides the SIP button, but if the SIP button area on the menubar is clicked, it reappears.  Is there any way to prevent this happening

 




Answer this question

SHCreateMenuBar and SHFS_HIDESIPBUTTON