WX_IMPLEMENT_DYNAMIC(CCursorMng, GETCLASS(tCursorSystem));
CCursorMng* CCursorMng::s_pMe = NULL;
CCursorMng::CCursorMng(VOID)
{
s_pMe = this;
m_bShow = TRUE;
m_nCursorState = CURSOR_NORMAL;
m_hUICursor = NULL;
m_cmdCurrent_Left.Cleanup();
m_cmdCurrent_Right.Cleanup();
m_cmdCurrent_Left.m_typeMouse = SCommand_Mouse::MCT_NULL;
m_cmdCurrent_Right.m_typeMouse = SCommand_Mouse::MCT_NULL;
}
CCursorMng::~CCursorMng(VOID)
{
}
VOID CCursorMng::SetCursor(ENUM_CURSOR_TYPE nType )
{
m_nCursorState = nType;
::PostMessage( g_hMainWnd, WM_SETCURSOR, 0, HTCLIENT );
}
INT CCursorMng::GetCursor_State(VOID)
{
// if(!m_bShow) return CURSOR_NORMAL;
return m_nCursorState;
}
HCURSOR CCursorMng::GetCursor(VOID)
{
if(!m_bShow) return NULL;
return m_hCursor[m_nCursorState];
}
每句话都要注释清楚,谢谢!!