windowplacement.h

来自「vc座的资源管理器源代码」· C头文件 代码 · 共 30 行

H
30
字号
// MSJ 
// It it works contact Paul DiLascia
// if not you're own your own

#ifndef __WINDOWPLACEMENT_H__
#define __WINDOWPLACEMENT_H__

// CWindowPlacement reads and writes WINDOWPLACEMENT 
// Helper for restoring the app size and placement.
class CTRL_EXT_CLASS CWindowPlacement : public WINDOWPLACEMENT {
public:
   CWindowPlacement();
   ~CWindowPlacement();
   
   // Read/write to app profile
   BOOL GetProfileWP(LPCTSTR lpKeyName);
   void WriteProfileWP(LPCTSTR lpKeyName);

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

   // Save/restore from archive
   friend CArchive& operator<<(CArchive& ar, const CWindowPlacement& wp);
   friend CArchive& operator>>(CArchive& ar, CWindowPlacement& wp);
private:
	int m_showCmd;
};
  
#endif

⌨️ 快捷键说明

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