?? resizingdialog.h
字號:
// ResizingDialog.h : header file
//
#ifndef _RESIZING_DIALOG_H
#define _RESIZING_DIALOG_H
#define ANCHORE_LEFT 0x0000
#define ANCHORE_TOP 0x0000
#define ANCHORE_RIGHT 0x0001
#define ANCHORE_BOTTOM 0x0002
#define RESIZE_HOR 0x0004
#define RESIZE_VER 0x0008
#define RESIZE_BOTH (RESIZE_HOR | RESIZE_VER)
/////////////////////////////////////////////////////////////////////////////
// CResizingDialog dialog
class CResizingDialog : public CDialog
{
// Construction
public:
CResizingDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL );
void SetControlInfo(WORD CtrlId,WORD Anchore);
BOOL GetRememberSize() { return m_bRememberSize;}
void SetRememberSize(BOOL bRemember) { m_bRememberSize = bRemember;}
// Dialog Data
protected:
BOOL m_bRememberSize;
int m_minWidth,m_minHeight;
int m_old_cx,m_old_cy;
BOOL m_bSizeChanged;
CDWordArray m_control_info;
UINT m_nIDTemplate;
// Generated message map functions
//{{AFX_MSG(CResizingDialog)
virtual BOOL OnInitDialog();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnGetMinMaxInfo(MINMAXINFO* pMMI);
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -