Winwords Help Toolbar |
Post Reply |
Author | ||
developer
Newbie Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
Posted: 05 August 2004 at 4:43pm |
|
Is there a way to place a Btn or Ctrl on the right of a toolbar, similar to the Winwords Help ComboBox? Thanks
|
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
I modified the GUI_OneNote sample to illustrate how to do this.
Add an popup menu item to the end of the IDR_MAINFRAME toolbar and give it a caption of "helpcombo". Then place this code in OnCreateControl: if (lpCreateControl->pMenu) { if (lpCreateControl->strCaption == "helpcombo") { CXTPControlComboBox* pComboSize = new CXTPControlSizeComboBox(); pComboSize->SetDropDownListStyle(); pComboSize->SetFlags(xtpFlagMan ualUpdate|xtpFlagRightAlign|xtpFlagNoMovable); pComboSize->SetWidth(150); lpCreateControl->pControl = pComboSize; return TRUE; } } |
||
developer
Newbie Joined: 05 August 2004 Status: Offline Points: 26 |
Post Options
Thanks(0)
|
|
I am doing this inside of a dialog. It seemed to work at first but in my OnSize Event I have this code:
As soon as the OnSize code is called, the Toolbar button moves back to its normal position. Here is the code I have in the OnCreateControl
What else am I missing? I also have another post about Modeless Dlgs and KickIdle Messages. Can you check that out also. Thanks. |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |