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

📄 deferpos.h

📁 WTL 实现WINCE 下slide view的源码
💻 H
字号:
#if !defined(_DEFERPOS_H_2E1EF384_AC30_11D3_A458_000629B2F85_INCLUDED_)
#define _DEFERPOS_H_2E1EF384_AC30_11D3_A458_000629B2F85_INCLUDED_

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

// This class wraps the BeginDeferWindowPos/DeferWindowPos/EndDeferWindowPos
// APIs using a "resource allocation is acquisition" idiom.

class CDeferPos
{
public:
	CDeferPos(int nWindows=1);
	~CDeferPos();

	BOOL MoveWindow(HWND hWnd, int x, int y, int nWidth, int nHeight, BOOL bRepaint);
	BOOL SetWindowPos(HWND hWnd, HWND hWndAfter, int x, int y, int nWidth,
		int nHeight, UINT uFlags);
#ifdef	_MFC_VER
	BOOL MoveWindow(CWnd* pWnd, int x, int y, int nWidth, int nHeight, BOOL bRepaint);
	BOOL SetWindowPos(CWnd* pWnd, CWnd* pWndAfter, int x, int y, int nWidth,
		int nHeight, UINT uFlags);
#endif

private:
	HDWP m_hdwp;
};

#endif // !defined(_DEFERPOS_H_2E1EF384_AC30_11D3_A458_000629B2F85_INCLUDED_)

⌨️ 快捷键说明

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