update for HEAD-2003091401
[reactos.git] / subsys / system / explorer / Seashell / SeaShellExt / Include / WindowPlacement.h
1 // MSJ 
2 // It it works contact Paul DiLascia
3 // if not you're own your own
4
5 #ifndef __WINDOWPLACEMENT_H__
6 #define __WINDOWPLACEMENT_H__
7
8 // CWindowPlacement reads and writes WINDOWPLACEMENT 
9 // Helper for restoring the app size and placement.
10 class CTRL_EXT_CLASS CWindowPlacement : public WINDOWPLACEMENT {
11 public:
12    CWindowPlacement();
13    ~CWindowPlacement();
14    
15    // Read/write to app profile
16    BOOL GetProfileWP(LPCTSTR lpKeyName);
17    void WriteProfileWP(LPCTSTR lpKeyName);
18
19    // Save/restore window pos (from app profile)
20    void Save(LPCTSTR lpKeyName, CWnd* pWnd);
21    BOOL Restore(LPCTSTR lpKeyName, CWnd* pWnd);
22
23    // Save/restore from archive
24    friend CArchive& operator<<(CArchive& ar, const CWindowPlacement& wp);
25    friend CArchive& operator>>(CArchive& ar, CWindowPlacement& wp);
26 private:
27         int m_showCmd;
28 };
29   
30 #endif