FullScreenHandler.h
资源名称:44757463.rar [点击查看]
上传用户:lj3531212
上传日期:2007-06-18
资源大小:346k
文件大小:1k
源码类别:
绘图程序
开发平台:
Visual C++
- ////////////////////////////////////////////////////////////////
- // MSDN Magazine -- December 2002
- // If this code works, it was written by Paul DiLascia.
- // If not, I don't know who wrote it.
- // Compiles with VC 6.0 or VS.NET on Windows XP. Tab size=3.
- //
- // Handle full-screen mode: adjust frame size to make
- // view's client area fill the available screen.
- //
- class CFullScreenHandler {
- public:
- CFullScreenHandler();
- ~CFullScreenHandler();
- void Maximize(CFrameWnd* pFrame, CWnd* pView);
- void Restore(CFrameWnd* pFrame);
- BOOL InFullScreenMode() { return !m_rcRestore.IsRectEmpty(); }
- CSize GetMaxSize();
- protected:
- CRect m_rcRestore;
- };
- // Global instance
- extern CFullScreenHandler FullScreenHandler;