Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Popup Menu Issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Popup Menu Issue

 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: Popup Menu Issue
    Posted: 09 July 2007 at 8:27am

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 for Popup menu

//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, and when we clicked on the "Design View" item on MAIN MENU Report Designer is Opening. BUT when we clicked on the "Design View" item on POPUP MENU, Report Designer is NOT Opening.
 
Pls Help me out in this issue.
 
Waiting for your reply.
 
Thanks,
KumarCJ
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: 09 July 2007 at 9:55am
Hello,
 
Please send it to support@codejock.com
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.172 seconds.