![]() |
Mouse RButtonUP |
Post Reply
|
| Author | |
gmail
Groupie
Joined: 24 February 2008 Status: Offline Points: 45 |
Post Options
Thanks(0)
Quote Reply
Topic: Mouse RButtonUPPosted: 10 January 2009 at 4:12pm |
|
I have the following code in my MainFrame and it doesn't show my own menu for customization of command bars:
ON_MESSAGE(WM_XTP_CONTROLRBUTTONUP, &CMainFrame::OnControlRButtonUp) ON_COMMAND(XTP_ID_CUSTOMIZE, &CMainFrame::OnCustomize) void CMainFrame::OnCustomize(){ } void CMainFrame::CustomizeShortcutBar(UINT id){ CMenu menu; menu.LoadMenu(IDR_MAINFRAME); CPoint pt; CRect rect; GetCursorPos(&pt); UINT nReturn=CXTPCommandBars::TrackPopupMenu(&menu, TPM_NONOTIFY|TPM_RECURSE|TPM_RETURNCMD, pt.x, pt.y, this); } Those 2 functions never gets called altough I'm trying to right click on the control? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 January 2009 at 1:13am |
|
Hello,
Catch WM_XTP_TOOLBARCONTEXTMENU message instead.
|
|
|
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 |