CXTResizePropertySheet wizard bug |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 23 October 2010 at 5:34pm |
Sample: 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
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Was this fixed? This is really important!: (
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Oleg, Oleg, Oleg? :D
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Please save me some minutes, attach project with these images (header/watermark) and such code
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
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 |