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 » Toolbar related issues Collapse All
Subject Author Date
howard liu Apr 11, 2008 - 6:30 AM

Hi support,


 


 


 


                    There are some methods not supported directly  in CExtToolControlBar when compared against CToolbar , I am listing out some of the methods over here related to CToolBar class of MFC can u help me in suggesting the equivalent methods in ProfUI CExtToolControlBar.


 


 


 


 


 


 


 


CToolBar Methods of MFC                                                                                  CExtToolControlBar


 


 


 


 


 


 


 


1) LoadBitMap                                                                                                   1) ???????????????


 


 


 


2) SetBitMap                                                                                                      2) ???????????????


 


 


 


3) SetHeight                                                                                                      3) ???????????????


 


 


 


4) SetSizes                                                                                                       4) ???????????????


 


 


 


5) GetButtonText                                                                                             5) ???????????????


 


 


 


6) SetButtonText                                                                                             6) ???????????????


 


 


 


 


 


thanks & regards,


 


Raghavendra H V

Technical Support Apr 16, 2008 - 4:48 AM

It’s not a problem to convert MFC toolbars into Prof-UIS toolbars but only if you are using simple toolbar initialization methods like LoadToolBar(). If you are using low level manipulation APIs with toolbar bitmaps and buttons, then you should emulate MFC toolbar APIs.

howard liu Apr 12, 2008 - 4:59 AM

Thanks support,


            But my problem context over here is entirely different , I have around 45 main applications that are using this CToolbar class of MFC , my idea is to wrap up your CExtToolControlBar inside another class and expose my class as if it is the MFC CToolBar class . So I needed to know which methods ahould i use for that.


Now I can not think of re writing my code that becomes absolute stupidity, so can u suggest me some methods to achieve my requirement.


 


 


thanks & regards,


Raghavendra H V

Technical Support Apr 12, 2008 - 4:23 AM

The MFC’s CToolBar class is a version of the MFC’s CControlBar control bar which contains only one child window, which is a CToolBarCtrl control. The latter is a wrapper for the Windows toolbar common control.

The CExtToolControlBar class in Prof-UIS is a control written from ground up and it implements lots of features not presented in the CToolBar nor in CToolBarCtrl. The CExtToolControlBar control does not contain any windows/controls inside. It paints buttons directly on its surface. Each button is an instance of the CExtBarButton class. The buttons generally know only their command identifiers. The images, tooltips and other text are stored as command descriptions in the command manager and as a result, the images you can see on command buttons in toolbars are automatically displayed in the same command items in menus because Prof-UIS menus are also based on the command manager. You can get a CExtCmdItem command description object by its command identifier using CExtCmdManager::CmdGetPtr(). You can change a command icon using the CExtCmdManager::CmdSetIcon() method. Both toolbars and menus can have a different size and different color format icons in their items/buttons.

howard liu Apr 11, 2008 - 6:31 AM

 


Hi support,


                   There are some methods not supported directly  in CExtToolControlBar when compared against CToolbar , I am listing out some of the methods over here related to CToolBar class of MFC can u help me in suggesting the equivalent methods in ProfUI CExtToolControlBar.


CToolBar Methods of MFC                                                                                  CExtToolControlBar


1) LoadBitMap                                                                                                   1) ???????????????


2) SetBitMap                                                                                                      2) ???????????????


3) SetHeight                                                                                                      3) ???????????????


4) SetSizes                                                                                                       4) ???????????????


5) GetButtonText                                                                                             5) ???????????????


6) SetButtonText                                                                                             6) ???????????????


 


thanks & regards,


Raghavendra H V