LZ在项目中遇到一个客户端全屏的问题,主要功能是将一个地图全屏,可以撤销全屏,现将这个技术记录下来
下面是去需要全屏的类
class CFullScreenHelp
{
public:
CFullScreenHelp();
~CFullScreenHelp();
public:
void Init(CWnd* lpObjWnd);
void Unit();
void FullScreen(); //全屏
private:
CWnd* m_lpObjWnd;
CWnd* m_lpFullWnd;
CWnd* m_pParentWnd;
BOOL m_bWndFullScreen;
CRect m_rcWndPos;
};
类实现:#include "stdafx.h"
#include "FullWndHelp.h"
CFullScreenHelp::CFullScreenHelp()
: m_lpObjWnd(NU