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

📄 wndbase.h

📁 WinCE下文字滚动的实例
💻 H
字号:
// WndBase.h: interface for the CWndBase class.
//
//Version:
//    0.1.8
//
//Date:
//    2008.02.27
//////////////////////////////////////////////////////////////////////
#pragma once

class CWndBase
{
public:
	virtual BOOL ShowWindow(BOOL bShow);
	virtual BOOL Create(HINSTANCE hInst,HWND hWndParent,const TCHAR *pcszWndClass,const TCHAR *pcszWndName,BOOL bMsgThrdInside = FALSE);	
	BOOL SetParent(HWND hWndParent);

	CWndBase();
	virtual ~CWndBase();

	//Get the private member variable
	HINSTANCE GetHinstance(void);
	HWND GetWindow(void);
	HWND GetWindowParent(void);

protected:
	virtual LRESULT WndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) ;
	virtual BOOL RegisterWnd(HINSTANCE hInst, const TCHAR *pcszWndClass);
	virtual void OnDestroy(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
	static LRESULT StaticWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);

private:
	//The variable is for the inside window message process
	static DWORD CreateProc(PVOID pArg);
	BOOL CreateWnd(void);
	
	BOOL m_bCreated;
	BOOL m_bMsgThrdInside;
	HANDLE m_hEventCreated;


	//The variable is for the common window use.	
	HINSTANCE m_hInst;
	HWND m_hWnd;
	HWND m_hWndParent;
	TCHAR *m_pszWndClass;
	TCHAR *m_pszWndName;
	
	
	
};

⌨️ 快捷键说明

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