⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resizedialog.h

📁 自已做的简单的库存管理软件。包含员工信息管理等
💻 H
字号:
#if !defined(AFX_RESIZEDIALOG_H__4220AE11_16FC_4401_BDB1_D81058824816__INCLUDED_)

#define AFX_RESIZEDIALOG_H__4220AE11_16FC_4401_BDB1_D81058824816__INCLUDED_



#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000

#include "Comcontrol.h"


// CResizeDialog dialog

class CResizeDialog : public CDialog
{
	DECLARE_DYNAMIC(CResizeDialog)

public:
	CResizeDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CResizeDialog();

// Dialog Data
	enum { IDD = IDD_COMCONTROL };

	typedef struct _dlgControlTag 

    {
		int iId;
		int iFlag;
		int iPercent;
	}DLGCTLINFO, *PDLGCTLINFO;
	
	enum
	{
		MOVEX = 0,
		MOVEY,
		MOVEXY,
		ELASTICX,
		ELASTICY,
		ELASTICXY
	};
	//  设置控件信息
    BOOL SetControlProperty(PDLGCTLINFO lp, int nElements);
	
	
	//  是否在对话框右下角显示表示可改变大小的图标
	void ShowSizeIcon(BOOL bShow = TRUE);



protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);	
	afx_msg void OnSizing(UINT nSide, LPRECT lpRect);
	
	DECLARE_MESSAGE_MAP()

private:
	
	int m_iClientWidth;  //  对话框client区域的宽度	
	int m_iClientHeight;  //  对话框client区域的高度
    int m_iMinWidth;  //  对话框的最小宽度
    int m_iMinHeight;  //  对话框的最小高度
	PDLGCTLINFO m_pControlArray;  //  控件信息数组指针
	int m_iControlNumber;  //  设置控件信息的控件个数
    BOOL m_bShowSizeIcon;  //  是否显示表示可改变大小的图标
    CStatic m_wndSizeIcon;  //  放图标的静态控件

    //  保存图标的bitmap
    CBitmap m_bmpSizeIcon; 
    BITMAP m_bitmap;


// Overrides

    // ClassWizard generated virtual function overrides

    //{{AFX_VIRTUAL(CResizeDialog)

protected:


    // Generated message map functions

    //{{AFX_MSG(CResizeDialog)

//    afx_msg void OnSize(UINT nType, int cx, int cy);

//    virtual BOOL OnInitDialog();

    //}}AFX_MSG

//    DECLARE_MESSAGE_MAP()

	
};


//{{AFX_INSERT_LOCATION}}

// Microsoft Visual C   will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_RESIZEDIALOG_H__4220AE11_16FC_4401_BDB1_D81058824816__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -