Print Page | Close Window

CPropertyPage with dynamic controls

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=10507
Printed Date: 23 November 2024 at 5:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CPropertyPage with dynamic controls
Posted By: zaksoft
Subject: CPropertyPage with dynamic controls
Date Posted: 05 May 2008 at 12:01pm
I have a CPropertyPage-derived class that is added with other standard pages to a propertysheet. This page, once created, is populated with some CEdit items based on a config files. The problem is that edit borders becomes black initially and when activated, skinned when mouse is over.
 
Witch is the best way of 'rescan' dialog after inserting controls ?
 
TIA


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

XTP 23.1 Static Link

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

Davide Zaccanti - ZakSoft - www.zaksoft.com




Replies:
Posted By: Oleg
Date Posted: 06 May 2008 at 2:15am

Hi,

try to call SetWindowPos + SWP_FRAMECHANGED for each edit.


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


Posted By: zaksoft
Date Posted: 06 May 2008 at 10:44am
It does not work either with WS_EX_CLIENTEDGE or not, I've also make an attempt to set SetAutoApplyNewWindows before adding (and forcing active) and the manually add propertypage after control creation.
 
 


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

XTP 23.1 Static Link

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

Davide Zaccanti - ZakSoft - www.zaksoft.com



Posted By: Oleg
Date Posted: 07 May 2008 at 3:50am
Hi,
can you update our skincontrols sample with such code and attach here.


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


Posted By: zaksoft
Date Posted: 09 May 2008 at 2:30am
https://forum.codejock.com/uploads/20080509_022949_SkinControls.zip -
uploads/20080509_022949_SkinControls.zip
 


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

XTP 23.1 Static Link

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

Davide Zaccanti - ZakSoft - www.zaksoft.com



Posted By: Oleg
Date Posted: 09 May 2008 at 4:57am
Hi,
 
Don't see problem with Edit.
As designed it shows Black WS_BORDER. I hover mouse and still see same border.
 
What do you see ?


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


Posted By: Oleg
Date Posted: 09 May 2008 at 4:58am
.. If you need theme for border replace code to
 
m_ZakSoftEditTest.CreateEx(WS_EX_CLIENTEDGE, "EDIT", 0, WS_VISIBLE | WS_CHILD | WS_TABSTOP, rcCheck, this, 0x1234);


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


Posted By: zaksoft
Date Posted: 09 May 2008 at 5:26am
Yes, this is the point...
 
in my real code i have some other function and
 
m_ZakSoftEditTest.ModifyStyleEx( 0, WS_EX_CLIENTEDGE | WS_EX_NOPARENTNOTIFY);
 
but calling modifystyleex after control creation lead to some graphic problem..
 
Using CreateEx solve the problem, thanks


-------------
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