fullscreenhandler.h
来自「全屏显示的VC++源代码,简单实用。代码用VC++6.0编写。」· C头文件 代码 · 共 26 行
H
26 行
////////////////////////////////////////////////////////////////
// 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;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?