Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Mouse RButtonUP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mouse RButtonUP

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: Mouse RButtonUP
    Posted: 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2009 at 1:13am
Hello,
 
Catch WM_XTP_TOOLBARCONTEXTMENU message instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.027 seconds.