Print Page | Close Window

Crash on custom item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=6588
Printed Date: 23 November 2024 at 1:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash on custom item
Posted By: zaksoft
Subject: Crash on custom item
Date Posted: 08 March 2007 at 1:11am
I've inserted skin manager (and only this - no other items from toolkit pro - linked statically) in an old app to give a fresh look, all features seem woorking as aspected except for 2 point
 
1) I use a library from FarPoint ( calendar3, DPP32d30.DLL ) and when I use GetDlgItem(..)->ShowWindow( SW_SHOW) on the control (it's a dialog page with many tabs) the app crashes calling
 
if (CWnd::GrayCtlColor((HDC)wParam, (HWND)lParam, (UINT)(nMessage - WM_CTLCOLORMSGBOX),m_pManager->GetMetrics()->m_brushDialog, 0))
 
in xtpskinobjectframe.cpp. Of course it works in W2K, XP, Vista if the skin manager is not activated or if the control is never shown. Any suggestion ?
 
2) I've seen that object created dinamically (ie using CreateEx( ...) at runtime are not skinned. Any hints?
 
Version 1.42
 
Thanxs


-------------
VS2022 - MFC MBCS Statically linked

XTP 23.1 Static Link

---------------------------------------------------------

Davide Zaccanti - ZakSoft - www.zaksoft.com




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