Print Page | Close Window

CXTResizeDialog fails on DoModal()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13788
Printed Date: 12 December 2024 at 1:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizeDialog fails on DoModal()
Posted By: shanmuganathan
Subject: CXTResizeDialog fails on DoModal()
Date Posted: 25 March 2009 at 12:14am
I have a SDI Application created using Visual Studio 2008 & my Xtreme Toolkit Pro v12.0.0.

In my SDI Application i added a dialog derived from  CXTResizeDialog. In my IDR_MainFrame i inserted
a menu. On Click of the Menu i invoked my dialog using DoModal() function.

When tested the application it worked fine until i added an RichEditControl to my dialog. After adding
RichEditControl to my dialog it is not displaying the dialog on DoModal().

Note:
I tried adding other controls like Button & Static controls it doesn't give any problems. But only when
i add an RichEditControl it fails miserably on  CreateDialogIndirect() function in DoModal().


Thanks in Advance for your help.



Replies:
Posted By: Smucker
Date Posted: 25 March 2009 at 12:39am
Are you calling AfxInitRichEdit() (for v1 rich edit control) or AfxInitRichEdit2() (for vv2)?

-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)



Posted By: shanmuganathan
Date Posted: 25 March 2009 at 4:54am
Thanks for the reply. I found that to be the issue in my case also. 



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