Wince hide mouse

Source: Internet
Author: User

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 );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.