|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
IntroductionThe It uses a modified I have hardcoded a few things in To use these in your project, do the following steps:
Member Functions & Data MembersCWnd* InsertControl(CRuntimeClass* pClass,LPCTSTR lpszWindowName,
CRect& rect,UINT nID,DWORD dwStyle );
This function creates and inserts the control into the Toolbar and returns the window inserted. In rect parameter, pass only the width and height. CWnd* InsertControl(CWnd* pCtrl,CRect& rect,UINT nID); This function inserts the already created control into the Toolbar. In rect parameter, pass only the width and height. BOOL AddDropDownButton(UINT nIDButton,UINT nIDMenu,BOOL bArrow=TRUE); This function a button to a Dropdown with a menu attached to it. Set bArrow to TRUE if you want to show arrow next to it. void SetToolBarInfoForCustomization();
This function sets the Customization information for the Toolbar. The Names used for the buttons in Customize dialog box are taken from the Tooltip of the Button. (String after Last '\n' of Prompt in Button Properties in Toolbar resource editing.) Call this function after the creation of the Toolbar is done. i.e. Controls, Dropdown have been added. void MarkDefaultState();
This function sets the default state of the Toolbar. The default state is set when Reset button of Customize Dialog Box is pressed. void SaveState()
This function saves the State of the Toolbar in the Registry. void RestoreState()
This function restores the State of the Toolbar from the Registry. BOOL m_bHideChildWndOnVertical; This flag controls whether the Controls are visible in the Vertical docking mode. Default Value is TRUE BOOL HasButtonText( int nID)
This function is used to determine whether the button has Text in "Selective Text on Right". At present it returns TRUE for all. Override this to provide new logic. nID is the command Identifier. Minimum RequirementsIt requires 5.80 version of the Commctl32.dll. It uses few features of 5.81 version, but they seem to work fine on 5.80 also. Please look at the Demo for full details. Thanks to all Code Project /Code Guru Developers. History
|
||||||||||||||||||||||