Professional UI Solutions
Site Map   /  Register


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 Tech Support » Casting the CExtToolControlBar to a CToolbar Collapse All
Subject Author Date
Pierre MEDART Jun 8, 2007 - 7:23 AM

Is there a way to cast CExtToolControlBar *’ to ’CToolBar * ?

Technical Support Jun 8, 2007 - 8:06 AM

Here is the inheritance:

CControlBar --> CExtControlBar --> CExtToolControlBar

CControlBar --> CToolBar
As you can see, it is not possible to cast CExtToolControlBar to CToolBar. The CExtToolControlBar class implements a toolbar-like window which is written from scratch. The CToolBar class implements a control bar based container for the toolbar common control. These classes are absolutely different.