![]() |
First-chance exception in <program.exe> (Comctl32. |
Post Reply ![]() |
Author | |
Michl ![]() Senior Member ![]() Joined: 14 September 2007 Status: Offline Points: 138 |
![]() ![]() ![]() ![]() ![]() Posted: 14 September 2007 at 7:09am |
Hi XTP programers If I select customize (ribbon bar) than everytime I get a first chance exception.
During analysation the problem, I found this article:
A look into MSDN for PROPSHEETPAGE Structure confirme the problem.
The exception doesn't raised if the current font (CDialogTemplate) and the actual font of the property sheet dialog is not equal. So the function
_AfxChangePropPageFont(pTemplate, bWizard);
in method CPropertyPage::PreProcessPageTemplate(PROPSHEETPAGE& psp, BOOL bWizard) makes a writeable copy of the dialog resource.
This class also free the global memory object at termination.
To resolve the problem I would like to subclass CXTPRibbonCustomizeQuickAccessPage and overwrite the method PreProcessPageTemplate
to create always a copy. But the problem is, that
a) this work have to do for every page
b) 2 pages/objects already created in CXTPCustomizeSheet
Make it sense to modify your classes and create a copy at default?
Best regards
Michael Sabo
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Its not serios problem and it appears for each PropetySheet dialog, You can ignore it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Michl ![]() Senior Member ![]() Joined: 14 September 2007 Status: Offline Points: 138 |
![]() ![]() ![]() ![]() ![]() |
That's right.
But it would be nice if no exception is raised and it is possible to suppress the exception. So the exception don't confuse for someone who don't know about this problem (as I before).
Michael
|
|
![]() |
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 |