![]() |
TrackPopupMenu parameters |
Post Reply
|
| Author | |
binaryc
Newbie
Joined: 15 March 2005 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: TrackPopupMenu parametersPosted: 17 March 2005 at 3:29pm |
|
I'm not really sure what I should pass as the parameters for CXTPComamndBars::TrackPopupMenu. The problem: The following combinations cause the menu to work fine, except the non-button controls appear as buttons. - view as pWnd, null as pWndOwner, null as pCommandBars All of the following combinations cause the split button to appear correctly, but the view doesn't get WM_COMMAND messages: From what I can tell, pWnd is the window that gets the messages,
unless pWndOwner is non-null, in which case that's the window that gets
the messages, unless pCommandBars is non-null, and pWndOwner is null,
in which case the owner of the command bars gets the message If this is the case, then it seems pCommandBars and pWndOwner are
mutually-exclusive. If that is true, then there should really be
two overloaded functions rather than one function that takes both
paramaters. It also seems that if either pWndOwner or
pCommandBars are set then pWnd gets ignored. Is what I'm trying to do possible? If so, what's the proper set of arguments to pass? The documentation is unhelpful in this situation and none of the samples appear to try to do something like this. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 March 2005 at 12:21am |
|
"except the non-button controls appear as buttons." so you convert them in OnCreateControl handler?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
binaryc
Newbie
Joined: 15 March 2005 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 March 2005 at 10:42am |
|
That's correct
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 March 2005 at 5:53am |
|
Try to dublicate OnCreateControl code to your view.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |