Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTResizePropertySheet wizard bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTResizePropertySheet wizard bug

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: CXTResizePropertySheet wizard bug
    Posted: 23 October 2010 at 5:34pm
 
----------------------------------------------------
 
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/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 23 November 2010 at 4:08am
Was this fixed? This is really important!: (
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2010 at 7:03am
Oleg, Oleg, Oleg? :D
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.