I searched the internet for information on how to hide the mouse. Most of them are implemented using the showcursor (bool bshow) function. However, during the test, I found that showcursor (false) was used before the form was created and before each message processing operation of the Form. When the form was started to pop up, I did not see the mouse, the mouse shadow is not found during the click operation, but the hateful mouse appears again when the screen is refreshed (for example, the form is minimized and then maximized ).
It is said that the cursor. Hide () under the framework can hide the mouse, because there is no environment or test. However, in EVC, I accidentally discovered a way to hide the mouse: using the system function setcursor (null );
Before creating a form, I used the above function to set up a test. Maximize and minimize, And the mouse does not appear.
Tested: No, sometimes it still appears
Http://topic.csdn.net/u/20070907/16/6b68ee8f-4f29-453c-94e2-60b86e6d8d7f.html
Hiding the mouse is actually quite simple. There are two methods:
1. Hide: showcursor (false); // hide the mouse
2. False hiding meansProgramWhen starting, place the mouse in the lower-right corner of the screen, and you can call the mouse at any time during the application process)
: Setcursorpos (m_fullscreenrect.right, m_fullscreenrect.bottom );
Do you want to hide the mouse,
The following methods are set during kernel Compilation:
Core OS-> cebase-> shell and user interface-> User Interface: remove the mouse option from compilation, and you can delete the mouse.
In the movepoint function of the display driver s3c2410disp. cpp fileCodeBlock it.
If (xposition! =-1 | yposition! =-1)
{
M_cursorrect.left = xposition-m_cursorhotspot.x;
M_cursorrect.right = m_cursorrect.left + m_cursorsize.x;
M_cursorrect.top = yposition-m_cursorhotspot.y;
M_cursorrect.bottom = m_cursorrect.top + m_cursorsize.y;
Cursoron ();
}
I can use the following three sentences on the xforwardedscreen. Currently, the test is not too problematic.
Showcursor (false );
Setcursor (null );
: Setcursorpos (820,500 );