Print Page | Close Window

Popup Menu Issue

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=7562
Printed Date: 28 December 2024 at 7:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Popup Menu Issue
Posted By: KumarCJ
Subject: Popup Menu Issue
Date 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



Replies:
Posted By: Oleg
Date Posted: 09 July 2007 at 9:55am
Hello,
 
Please send it to support@codejock.com


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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