Initial Commit
This commit is contained in:
20
common/CRSCTRL.CPP
Normal file
20
common/CRSCTRL.CPP
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <common/crsctrl.hpp>
|
||||
|
||||
void CursorControl::setCursor(int setState,CursorID cursorID)
|
||||
{
|
||||
if(setState)
|
||||
{
|
||||
if(!mhCursor)mhCursor=::SetCursor(::LoadCursor(NULL,(const char*)(int)cursorID));
|
||||
::ShowCursor(TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(mhCursor)
|
||||
{
|
||||
::ShowCursor(FALSE);
|
||||
::SetCursor(mhCursor);
|
||||
::ShowCursor(TRUE);
|
||||
mhCursor=FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user