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

📄 winctrl.h

📁 使用visual c++实现的usbview
💻 H
字号:
#if !defined(AFX_WINCTRL_H__6027FE26_B7C2_4AE8_B56F_0BAC8B0724C6__INCLUDED_)
#define AFX_WINCTRL_H__6027FE26_B7C2_4AE8_B56F_0BAC8B0724C6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WinCtrl.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CWinCtrl dialog

class CWinCtrl : public CDialog
{
// Construction
public:
	CWinCtrl(CWnd* pParent = NULL);   // standard constructor
	CWinCtrl(UINT nID, CWnd* pParent = NULL);
	
	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);
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; 
// Dialog Data
	//{{AFX_DATA(CWinCtrl)
	enum { IDD = 10000 };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWinCtrl)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CWinCtrl)
	virtual BOOL OnInitDialog();
	afx_msg void OnCancelMode();
	afx_msg void OnCaptureChanged(CWnd *pWnd);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnSizing(UINT nSide, LPRECT lpRect);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WINCTRL_H__6027FE26_B7C2_4AE8_B56F_0BAC8B0724C6__INCLUDED_)

⌨️ 快捷键说明

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