// Persist.h #ifndef _INSIDE_VISUAL_CPP_PERSISTENT_FRAME #define _INSIDE_VISUAL_CPP_PERSISTENT_FRAME class AFX_EXT_CLASS CPersistentFrame : public CFrameWnd { // remembers where it was on the desktop DECLARE_DYNAMIC(CPersistentFrame) private: static const CRect s_rectDefault; static const char s_profileHeading[]; static const char s_profileRect[]; static const char s_profileIcon[]; static const char s_profileMax[]; static const char s_profileTool[]; static const char s_profileStatus[]; BOOL m_bFirstTime; protected: // Create from serialization only CPersistentFrame(); ~CPersistentFrame(); public: virtual void ActivateFrame(int nCmdShow = -1); protected: afx_msg void OnDestroy(); DECLARE_MESSAGE_MAP() }; #endif // _INSIDE_VISUAL_CPP_PERSISTENT_FRAME