Print Page | Close Window

CXTResizePropertySheet wizard bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17476
Printed Date: 19 June 2025 at 3:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizePropertySheet wizard bug
Posted By: znakeeye
Subject: CXTResizePropertySheet wizard bug
Date Posted: 23 October 2010 at 5:34pm
Sample: http://forum.codejock.com/uploads/2198/Wiz97_3.zip - uploads/2198/Wiz97_3.zip
 
----------------------------------------------------
 
XTP 13.4.2, Windows 7 x64 (Classic).
 
XTPResizePropertySheet-derived class with the following in constructor:
m_psh.dwFlags |= PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER;
m_psh.pszbmWatermark = MAKEINTRESOURCE(nIDWatermark);
m_psh.pszbmHeader = MAKEINTRESOURCE(nIDHeader);
m_psh.hInstance = AfxGetInstanceHandle();
 
Pages with the following in constructor:
m_psp.dwFlags |= PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
 
 
When resizing, you get these artifacts:
1) Etched horizontal does not follow size.
2) Banner image is screwed until explicitly redrawn.
 
 
Any chance for a fix? This effectively makes CXTResizePropertySheet useless for modern wizards Cry


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: znakeeye
Date Posted: 23 October 2010 at 5:37pm
Ok, here's a fix for bug #1:
 
#define ID_WIZLINE_BOTTOM (ID_WIZFINISH + 1) // Renamed it :)
#define ID_WIZLINE_TOP (ID_WIZFINISH + 2)
 
if (IsWizard())
{
    SetResize(ID_WIZBACK, SZ_REPOS(1));
    SetResize(ID_WIZNEXT, SZ_REPOS(1));
    SetResize(ID_WIZFINISH, SZ_REPOS(1));
    SetResize(ID_WIZLINE_BOTTOM, SZ_BOTTOM_LEFT, SZ_BOTTOM_RIGHT);
    SetResize(ID_WIZLINE_TOP, SZ_BOTTOM_LEFT, SZ_BOTTOM_RIGHT);
}
 


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 23 November 2010 at 4:08am
Was this fixed? This is really important!: (

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 29 November 2010 at 7:03am
Oleg, Oleg, Oleg? :D

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 29 November 2010 at 9:58am
Hi,

Please save me some minutes, attach project with these images (header/watermark) and such code


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


Posted By: znakeeye
Date Posted: 30 November 2010 at 4:00am
Ok, made a simple sample. However, the banner seems to get redrawn correctly when using XTP 13.4.0 and no skin manager. I will get back to you on this tomorrow! There might be another bug that cannot be seen using this sample...

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 18 February 2011 at 8:01am
Hi,

This banner PropertySheet draw directly in comctrl32 code, so we should Invalidate it


BEGIN_MESSAGE_MAP(CWiz97, CXTResizePropertySheet)
ON_WM_SIZE()
END_MESSAGE_MAP()

Here changes I made for sample:

void CWiz97::OnSize(UINT nType, int cx, int cy)
{
CXTResizePropertySheet::OnSize(nType, cx, cy);

Invalidate(FALSE);
}

+ Hide Tabs

m_tabCtrl.MoveWindow(0, 0, 0, 0);
m_tabCtrl.ShowWindow(SW_HIDE);
m_tabCtrl.UnsubclassWindow();



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



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