Search by Tags

Mouse Cursor

 

Compare with Revision




Subscribe for this article updates

Hide the Mouse Cursor

Hide Mouse Cursor by Registry Setting

For Colibri PXAxxx

You can hide the mouse cursor in the Display driver registry settings.

[HKLM\Drivers\Display\Colibri]
cursor=dword:0

You must save the registry.

For Colibri T20

You can hide the mouse cursor in the Display driver registry settings.

  1. Open RegEdit by going to Start > Programs > ColibriTools > RegEdit

  2. Make the following change:

    HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation\NVDDI
    "HwCursor"=dword:0
    
  3. Save the registry using SaveReg in ColibriTools.

  4. Restart the module.

For Colibri/Apalis i.mx6

You can hide the mouse cursor in the Display driver registry settings.

  1. Open RegEdit by going to Start > Programs > ColibriTools > RegEdit

  2. Make the following change:

    HKEY_LOCAL_MACHINE\Drivers\Display
    "Cursor"=dword:0
    
  3. Save the registry using SaveReg in ColibriTools.

  4. Restart the module.

Hide Mouse Curser Globally From an Application

You can call an escape code to globally enable/disable the mouse cursor.

 
#define ESCAPECODEBASE          100000
#define MOUSECURSOR             (ESCAPECODEBASE + 20)
 
DWORD old_cursor=0;
DWORD new_cursor=0;
 
// Get Cursor Status
ExtEscape(GetDC(NULL), MOUSECURSOR, 0, NULL, 4, (char*)&old_cursor);
 
// Disable Cursor
new_cursor=0;
ExtEscape(GetDC(NULL), MOUSECURSOR, 4, (char*)&new_cursor, 4, (char*)&old_cursor);
 
// Enable Cursor
new_cursor=1;
ExtEscape(GetDC(NULL), MOUSECURSOR, 4, (char*)&new_cursor, 4, (char*)&old_cursor);
 

Hide the Mouse Cursor for one Application

There is an API call to hide the mouse cursor for only one application

{
    ShowCursor(FALSE);
}