📄 ngwindowplacement.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 + -