ngwindowplacement.h

来自「ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - 」· C头文件 代码 · 共 35 行

H
35
字号
////////////////////////////////////////////////////////////////
// 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 + =
减小字号Ctrl + -
显示快捷键?