⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vncclientcontrol.h

📁 teamviewer source code vc++
💻 H
字号:
class vncClientControl;

#if (!defined(_WINVNC_VNCCLIENTCONTROL))
#define _WINVNC_VNCCLIENTCONTROL

#include "vncServer.h"
#include "windowfinder.h"
#include "../../vncviewer/VncOptions.h"

class vncClientControl : public omni_thread
{
public:
	// Constructor / destructor
	vncClientControl();
	~vncClientControl();

	BOOL Init(vncClient* pClient, vncServer *pServer);
	void Kill();
	void CreateButtons();

	static LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
	static LRESULT CALLBACK WndProcHandle(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
	static LRESULT CALLBACK WndProcTB(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
	static LRESULT CALLBACK WndProcPointer(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam);
	WNDPROC oldWndProcTB;

	vncClient* m_pClient;
	vncServer* m_pServer;

	HWND m_hwndClientControl;
	HWND m_hwndTB;
	HWND m_hwndHandleClosed;
	HIMAGELIST m_hTBImageList;				// image list 
	HIMAGELIST m_hTBHottrack;
	HBITMAP m_bmpToolbarBackground;
	HBITMAP m_bmpToolbarHandleClosed;
	HBITMAP m_closeButton;
	HBITMAP m_minimizeButton;

	FileTransferLog* m_fileTransferLog;

	BOOL m_closed;	
	BOOL m_clicked;
	WindowFinder* wf;
	HWND m_hwndPointer;
	HWND m_fLastSingleWindow;
	int m_SW_Buttonpos;		// position of Single Window button in toolbar
	VNCOptions m_opts;
private:
	virtual void *run_undetached(void * arg);
	void PaintBorder(HWND window);
	void ApplyOptions();
	RECT m_TBr;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -