Files
reactos/reactos/subsys/system/explorer/Seashell/SeaShellExt/Include/WindowPlacement.h
T
Royce Mitchell III bbab51678b *** empty log message ***
svn path=/trunk/; revision=5114
2003-07-14 13:55:24 +00:00

30 lines
838 B
C++

// 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