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

📄 ngwindowplacement.h

📁 ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - Manage and Renumber Resource Symbol IDs Introduction The
💻 H
字号:
////////////////////////////////////////////////////////////////
// CNGWindowPlacement Copyright 1996 Microsoft Systems Journal.
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.

////////////////
// CNGWindowPlacement reads and writes WINDOWPLACEMENT 
// from/to application profile and CArchive.
//
class NGLIB_EXT_CLASS CNGWindowPlacement : public WINDOWPLACEMENT
{
public:
			CNGWindowPlacement(void);

	virtual	~CNGWindowPlacement(void);
	
	// Read/write to app profile
	BOOL GetProfileWP(LPCSTR lpKeyName);
	BOOL WriteProfileWP(LPCSTR lpKeyName);

	// Save/restore window pos (from app profile)
	BOOL Save(LPCSTR lpKeyName, CWnd* pWnd);
	BOOL Restore(LPCSTR lpKeyName, CWnd* pWnd);

	// Save/restore from archive
	friend CArchive& operator<<(CArchive& ar, const CNGWindowPlacement& wp);
	friend CArchive& operator>>(CArchive& ar, CNGWindowPlacement& wp);

	// Implementation
private:
	BOOL		ParsePlacementString(const CString& sBuffer);
	CString		BuildPlacementString(void);

};

⌨️ 快捷键说明

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