how can i manipulate a docking pane with menu item |
Post Reply |
Author | |
rienzi
Groupie Joined: 20 August 2009 Status: Offline Points: 38 |
Post Options
Thanks(0)
Posted: 22 November 2009 at 9:58pm |
I want to link a menu item to a docking pane. I imitated the sample named GUI_VisualStudio_vc80. I defined the CXTPDockingPaneManager member variable and added an dialog to it successfully. Then I wanna manipulate the opening and closing of the docking pane with menu item. I added a new menu item with the same ID, IDR_PANE1 to my main menu resource. But the menu item do not work. It is just unfocused when the App starts.
I wonder how to link the docking pane to a menu item please.
tell me, big master please...
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
So you need add handler for IDR_PANE1 command.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rienzi
Groupie Joined: 20 August 2009 Status: Offline Points: 38 |
Post Options
Thanks(0)
|
i find that the sample GUI_VisualStudio_vc80 does not add handler for menu command. The menu item just has the same ID, for example IDR_PANE1, to the linked docking pane. But it still works right. I have searched. There is definitely no menu command handler in any of the classes in the sample's project. I wonder why.
now i have added handler to my menu item and successfully linked the docking panes to menu items respectively. So the question above is not necessary to answer.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
It has "range" command to handle all Panes:
ON_COMMAND_RANGE(ID_VIEW_SOLUTIONEXPLORER, ID_VIEW_TOOLBOX, OnShowView)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rienzi
Groupie Joined: 20 August 2009 Status: Offline Points: 38 |
Post Options
Thanks(0)
|
ho, i see i'm sorry and thanks a lot, big master
|
|
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 |