![]() |
Multilanguage support for CView-derived classes |
Post Reply
|
| Author | |
denium
Newbie
Joined: 08 August 2007 Location: Canada Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Multilanguage support for CView-derived classesPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
denium
Newbie
Joined: 08 August 2007 Location: Canada Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 August 2007 at 12:08pm |
|
Thank you very much, it works. Best regards.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |