www.pudn.com > SimpleInput.rar > IMWnd.h


// IMWnd.h: interface for the CIMWnd class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#ifndef IMWND_H 
#define IMWND_H 
//========================================================================== 
 
#include "sip.h" 
 
 
//-------------------------------------------------------------------------------- 
//The input method window class 
class CIMWnd   
{ 
public: 
	HWND GetWindow(); 
	void ShowUserOptionsDlg(HWND hWndParent,HINSTANCE hInst = NULL); 
	void ShowWindow(BOOL bShow); 
	void DestroyWindow(); 
	static CIMWnd * GetInstance(); 
	BOOL Initialize(HINSTANCE hInst, HWND hWndSip); 
	virtual ~CIMWnd(); 
 
 
protected: 
	void OnRegCallback(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam); 
	void OnDestroy(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam); 
	void OnLButtonUp(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam); 
	void OnPaint(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam); 
	CIMWnd(); 
	 
	static LRESULT WndProc(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam); 
	static CIMWnd *m_pInstance; 
	 
	HWND m_hWnd; 
	HINSTANCE m_hInst; 
	HWND m_hWndSip; //The sip window, also the parent window 
 
 
 
 
	 
	IIMCallback *m_pIMCallback; //Pointer to the callback function 
 
 
}; 
 
 
//============================================================================ 
#endif // IMWND_H