dlgunits.h

来自「管理项目进度工具的原代码」· C头文件 代码 · 共 42 行

H
42
字号
// DlgUnits.h: interface for the CDlgUnits class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DLGUNITS_H__18921FC5_A659_4AA7_BDF8_EF630D0D13E6__INCLUDED_)
#define AFX_DLGUNITS_H__18921FC5_A659_4AA7_BDF8_EF630D0D13E6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDlgUnits  
{
public:
	CDlgUnits(HWND hWnd = NULL);
	CDlgUnits(CWnd* pWnd);
	virtual ~CDlgUnits();

	int ToPixelsX(int x) const;
	int ToPixelsY(int y) const;

	void ToPixels(long& x, long& y) const;
	void ToPixels(int& x, int& y) const;
	void ToPixels(short& x, short& y) const;
	void ToPixels(POINT& point) const;
	void ToPixels(RECT& rect) const;
	void ToPixels(SIZE& size) const;
	void FromPixels(long& x, long& y) const;
	void FromPixels(int& x, int& y) const;
	void FromPixels(short& x, short& y) const;
	void FromPixels(POINT& point) const;
	void FromPixels(RECT& rect) const;
	void FromPixels(SIZE& size) const;

protected:
	SIZE m_dlgBaseUnits;
	HWND m_hWnd;

};

#endif // !defined(AFX_DLGUNITS_H__18921FC5_A659_4AA7_BDF8_EF630D0D13E6__INCLUDED_)

⌨️ 快捷键说明

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