Print Page | Close Window

Regarding POPUP MENU

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7545
Printed Date: 13 November 2025 at 8:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Regarding POPUP MENU
Posted By: KumarCJ
Subject: Regarding POPUP MENU
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net