Wizard Dialog again
-
Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
-
Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
John Simmons / outlaw programmer wrote: I can make a screen shot available Please, do that. If that is what I'm thinking it is, I believe you will have to resize the embedded property page... Regards, João Paulo
-
John Simmons / outlaw programmer wrote: I can make a screen shot available Please, do that. If that is what I'm thinking it is, I believe you will have to resize the embedded property page... Regards, João Paulo
http://www.paddedwall.org/wizardshot.jpg[^] ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
-
http://www.paddedwall.org/wizardshot.jpg[^] ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
My darkest fears have come true (I was right). But it is almost sorted out. Gotta put the kids in the table for dinner and will be back in an hour with the full solution. Sorry for this... Regards, João Paulo
-
Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
Well, if you are using my code, my apologies. What happens is that the tab control is hidden but the property sheet does not know about it, so it will happily resize the embedded property page as though there was a tab control. I remeber vaguely, when I first wrote the code, that I thought about this possibility... :doh: So, how do we sort this mess out? You only need to do some changes in the
CCeWizard
class. These will be reflected on the article but here they are, in case you are in a hurry.CCeWizard.h
class CCeWizard : public CCePropertySheet
{
DECLARE_DYNAMIC(CCeWizard)// Construction
public:
CCeWizard(UINT nIDCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);
CCeWizard(LPCTSTR pszCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);// Attributes
public:// Operations
public:// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCeWizard)
public:
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL// Implementation
public:
virtual ~CCeWizard();// Generated message map functions
protected:
UINT m_idToolBar;
SHACTIVATEINFO m_sai;void UpdateControls(); void PopulateToolBar(); void ResizePage(); //{{AFX\_MSG(CCeWizard) afx\_msg void OnBarBack(); afx\_msg void OnBarNext(); afx\_msg void OnBarOk(); afx\_msg void OnBarCancel(); afx\_msg void OnPaint(); afx\_msg void OnSize(UINT nType, int cx, int cy); //}}AFX\_MSG afx\_msg void OnActivate(UINT nState, CWnd\* pWndOther, BOOL bMinimized); afx\_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection); DECLARE\_MESSAGE\_MAP()
};
CCeWizard.cpp
CCeWizard::CCeWizard(UINT nIDCaption, UINT idToolBar, CWnd* pParentWnd)
: CCePropertySheet(nIDCaption, pParentWnd, 0),
m_idToolBar (idToolBar)
{
memset(&m_sai, 0, sizeof(SHACTIVATEINFO));
m_sai.cbSize = sizeof(SHACTIVATEINFO);
}
...
BEGIN_MESSAGE_MAP(CCeWizard, CCePropertySheet)
...
ON_WM_ACTIVATE()
ON_WM_SETTINGCHANGE()
END_MESSAGE_MAP()
...
// CCeWizard::UpdateControls
//
// Updates the command bar buttons
//
void CCeWizard::UpdateControls()
{
...
ResizePage();
}
...
// CCeWizard::ResizePage
//
// Resize the active property page
//
void CCeWizard::ResizePage()
{
CPropertyPage* pPage = GetActivePage();if(pPage) { CRect rc; pPage->GetWindowRect(&rc); ScreenToClient(&rc); rc.bottom += 22; // MAGIC NUMBER!!! pPage->MoveWindow(&rc); }
}
...
// CCeWizard::OnSize
//
// Special resizin -
Well, I got my wizard dialog working to a point, but there is a visual glitch. The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen. Anybody have a work-around for this? Do I have to overrie some paiting functionality? I can make a screen shot available if I didn't explain this well enough. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
John, The article is updated. As you can see from the image, your button problem is solved (I hope you don't mind my using your name on the button - if you do I'll remove it). A Wizard-like property sheet for the Pocket PC[^] Thank you for using the code and spotting this problem! ;) Regards, João Paulo
-
John, The article is updated. As you can see from the image, your button problem is solved (I hope you don't mind my using your name on the button - if you do I'll remove it). A Wizard-like property sheet for the Pocket PC[^] Thank you for using the code and spotting this problem! ;) Regards, João Paulo
You are GOD! If I can manage to find a sacrificial virgin, I'll send her to you yo do with as you please. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
-
You are GOD! If I can manage to find a sacrificial virgin, I'll send her to you yo do with as you please. ------- signature starts "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "You won't like me when I'm angry..." - Dr. Bruce Banner Please review the Legal Disclaimer in my bio. ------- signature ends
:-O