📄 ngwizard.h
字号:
#if !defined(__NGWizard_H__)
#define __NGWizard_H__
/************************************************************************
*
* CNGWizard - Wizard97 class which supports resizing
*
* Written by Anna-Jayne Metcalfe (code@annasplace.me.uk)
*
************************************************************************
*
* Filename : NGWizard.h
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or later
* Microsoft Visual C++.NET
*
* Target
* Environment : Win98/Me/NT/2000/XP
*
* This code will also work on Windows 95, although
* controls which should have transparent backgrounds
* may not display correctly.
*
* Version 5.80 of the common controls library is required
*
* NOTE:
*
* Your are free to use this code in your own products, PROVIDED
* this notice is not removed or modified.
*
************************************************************************/
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// NGWizard.h : header file
//
#include "NGDialog.h"
#include "NGWizardPage.h"
/////////////////////////////////////////////////////////////////////////////
// CNGWizard
#define CNGWizard_BASE CNGPropertySheet
class NGLIB_EXT_CLASS CNGWizard : public CNGWizard_BASE
{
DECLARE_DYNAMIC(CNGWizard)
// Construction
public:
CNGWizard(UINT nIDCaption = 0,
CWnd* pParentWnd = NULL,
UINT nPage = 0);
CNGWizard(LPCTSTR pszCaption,
CWnd* pParentWnd = NULL,
UINT nPage = 0);
virtual ~CNGWizard(void);
// Attributes
protected:
CDIBitmap m_bmpHeader;
CBrush m_HollowBrush;
UINT m_uWatermarkID;
int m_eWatermarkStyle;
UINT m_uHeaderID;
int m_eHeaderStyle;
BOOL m_bResizeable;
BOOL m_bShowFinishAlways; // If TRUE, Next and Finish can both be seen
// at the same time. Otherwise, Finish will
// replace Next (as standard in most Wizards)
// The CNGResizeCtrl object below is required so we can
// resize the wizard
CNGResizeCtrl m_Resizer;
// Operations
public:
virtual void AddPage(CNGWizardPage* pPage);
BOOL SetWatermark( UINT uWatermarkID,
int eStyle = WIZ97_BITMAP_STRETCH);
BOOL SetHeader( UINT uHeaderID,
int eStyle = WIZ97_BITMAP_STRETCH);
void EnableWizardButtons(DWORD dwFlags, BOOL bEnable);
BOOL IsResizeable(void) const
{ return m_bResizeable; }
BOOL AllowResize(BOOL bResize);
protected:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNGWizard)
public:
virtual BOOL OnInitDialog(void);
//}}AFX_VIRTUAL
// Implementation
private:
void AdjustPage(void);
BOOL SetInitialisingFlag(BOOL bInitialising);
// Generated message map functions
protected:
//{{AFX_MSG(CNGWizard)
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg BOOL OnQueryNewPalette(void);
afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
afx_msg BOOL OnClickedPrev(UINT uID);
afx_msg BOOL OnClickedNext(UINT uID);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(__NGWizard_H__)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -