Print Page | Close Window

XTPResourceManager() and SetMenu().

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=18200
Printed Date: 19 June 2025 at 9:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPResourceManager() and SetMenu().
Posted By: ddlittle
Subject: XTPResourceManager() and SetMenu().
Date Posted: 10 April 2011 at 11:22pm
I'm trying to implement locatilization in one of my apps, and for the most part it works.  however, the GetCommandBars()->SetMenu() always loads the menu from the .exe and not the currently selected resource.dll.
 
I thought there might be a workaround because XTPResourceManager() has a LoadMenu(), but XTPCommandBars() doesn't have a SetMenu that takes anything other than the resource ID.
 
Any ideas?
 
 



Replies:
Posted By: Oleg
Date Posted: 11 April 2011 at 4:08am
Hi,

You also need call AfxSetResourceHandle to dll with Resources


-------------
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