Improve: Remove F11 to leave full screen (Use popup dialog)

This commit is contained in:
yuanyuanxiang
2025-12-22 23:01:19 +01:00
parent 8fdd50e0c9
commit c24cc29093
9 changed files with 180 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
#include "IOCPServer.h"
#include "..\..\client\CursorInfo.h"
#include "VideoDlg.h"
#include "ToolbarDlg.h"
extern "C"
{
@@ -42,6 +43,7 @@ extern "C"
class CScreenSpyDlg : public DialogBase
{
DECLARE_DYNAMIC(CScreenSpyDlg)
CToolbarDlg* m_pToolbar = nullptr;
public:
CScreenSpyDlg(CWnd* Parent, Server* IOCPServer=NULL, CONTEXT_OBJECT *ContextObject=NULL);
@@ -120,6 +122,9 @@ public:
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnExitFullscreen() {
LeaveFullScreen();
}
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>