![]() |
Context Menu - ID_VIEW_TOOLBAR |
Post Reply
|
| Author | |
IRMark
Groupie
Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Topic: Context Menu - ID_VIEW_TOOLBARPosted: 13 July 2006 at 12:48pm |
|
Hi,
|
|
![]() |
|
IRMark
Groupie
Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 July 2006 at 9:54am |
|
I hate to bump this but does anyone have any ideas on this? Is it possible to take the values from a CXTPPopupBar and add them to a CMenu?
What about any ideas on context menus displaying ID_VIEW_TOOLBAR normally? Thanks in advance, mark. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 July 2006 at 12:48pm |
|
Hello, not sure what code you tried...
In CustomThemes sample I modified:
void CCustomThemesView::ShowContextMenu(CPoint point)
{ ClientToScreen(&point); CMenu mnu; mnu.LoadMenu(IDR_MAINFRAME); ((CXTPMDIFrameWnd*)AfxGetMainWnd())->GetCommandBars()->
TrackPopupMenuEx(mnu.GetSubMenu(2), TPM_RIGHTBUTTON, point.x, point.y); } and see View menu with toolbars as expected.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
IRMark
Groupie
Joined: 13 July 2006 Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 July 2006 at 4:22pm |
|
Hi Oleg, |
|
![]() |
|
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 |