Print Page | Close Window

Multilanguage support for CView-derived classes

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=7758
Printed Date: 13 November 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multilanguage support for CView-derived classes
Posted By: denium
Subject: Multilanguage support for CView-derived classes
Date Posted: 08 August 2007 at 12:18pm
I have an SDI application with two CFormView-based views. This application is multilanguage: I use a separate resource DLL to switch languages.
How can I load dialog templates for these views from my resouse library? After calling XTPResourceManager()->SetResourceFile(..) it still loads them from main executable resources.. And I cann't use CreateDlgIndirect(XTPResourceManager()->LoadDialogTemplate(...)); cause it's CView (not CDialog) based class..
 
Any suggestions?
 
Thank you in advance.



Replies:
Posted By: Oleg
Date Posted: 09 August 2007 at 1:40am
Hello,
 
Override BOOL CFormView::Create(LPCTSTR /*lpszClassName*/, LPCTSTR /*lpszWindowName*/,
 DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
 CCreateContext* pContext)
copy all code from original CFormView but instead CreateDlg use CreateDlgIndirect.


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


Posted By: denium
Date Posted: 10 August 2007 at 12:08pm

Thank you very much, it works.

 
Best regards.



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