Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » removing close button X from tabbed CExtControlBar is not working Collapse All
Subject Author Date
Jos Smit Jan 11, 2008 - 2:54 AM

I read the article "How to remove the close button ("X") from the control bar?" and the Forum article "Problem with removing the ’x’ button on control bar title bar" which both tell how to disable the X for docked control bars.

In order to make that work I must intercept the message CExtControlBar::g_nMsgCreateTabbedBar in my CExtControlBar-derived class. I tried doing that with the source code provided, but that didn’t work. Then I tried overriding PreTranslateMessage() but that didn’t work either.

Maybe the variable CExtControlBar::g_nMsgCreateTabbedBar isn’t right initialized, in my case it has the value 49901 (0x0000c2ed). Or am I doing (or leaving) something else to prevent this message from occurring?

Please can anyone help me. Thanks.

Jos Smit

Technical Support Jan 15, 2008 - 6:37 AM

Here is our reply in this thread. You don’t need to prevent the CExtControlBar::g_nMsgCreateTabbedBar message. You should just process it in the correct way.