Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Regarding POPUP MENU
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Regarding POPUP MENU

 Post Reply Post Reply
Author
Message
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Topic: Regarding POPUP MENU
    Posted: 06 July 2007 at 3:08am

Hi,

We are intergrating our application with codejock 10.4.2.

We have Main Menu item "Design View". When we are clciking on "Design View" through MainMenu, report designer is opening perfectly.

We have Item detail view, if I right click on this view it displayed popup menu where we have "Design View". If we clicked on "Design View" using below OLD code, Report Designer is opening perfectly.

//OLD CODE
if (!TrackPopupMenu(hMenuPopup, TPM_LEFTALIGN | TPM_RIGHTBUTTON, ClickPos.x, ClickPos.y, 0, hWndTrack, NULL))
{
 xyz();
}

BUT, when we replaced the OLD CODE with below given NEW CODE

//NEW CODE
if(!CXTPCommandBars::TrackPopupMenu( CMenu::FromHandle(hMenuPopup), TPM_LEFTALIGN | TPM_RIGHTBUTTON,
         ClickPos.x, ClickPos.y, CWnd::FromHandlePermanent(hWndTrack), 0,0,
         ((CXTPMDIFrameWnd*)AfxGetMainWnd())->GetCommandBars()) )
{
 xyz();
}

and when we click on "Design View", Report Designer is not Opening.

ISSUE:
The Issue is that when we replaced the OLD CODE for displaying POPUP MENU with NEW CODE, the "Design View" is opening through MAIN MENU, but NOT by POPUP MENU.
 
Thanks,
KumarCJ
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.049 seconds.