🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #721

Re: How to Hide Mouse Pointer after an idle period?

#721
From: Asger Joergensen
Date: Fri, 18 Jan 2008 14:05
28 lines
1604 bytes
Hi Phuoc 
 
 Phuoc says:
> I want to hide the mouse pointer after idling for few seconds and bring it
> back as soon as it's moved. I've seen this effect in many programs. Is
> there any sample codes?

How about setting Screen->Cursor = crNone;

or the API way

SetCursor function establishes the cursor shape. 

HCURSOR SetCursor(
    HCURSOR hCursor 	// handle of cursor
   );

or

SetSystemCursor (
    HCURSOR hcur,	// set specified system cursor to this cursor's contents, 
// then destroy this
    DWORD id	// system cursor specified by its identifier
   );

Kind regards
Asger
Technical Details
Message-ID: <MPG.21fad0a6cb76c217989a09@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <op.t44k6rb4ewlac1@centrino>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,55afad01d4e866e0
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Asger Joergensen <junk@Asger-P.dk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to Hide Mouse Pointer after an idle period?
Date: Fri, 18 Jan 2008 15:05:45 +0100
Message-ID: <MPG.21fad0a6cb76c217989a09@newsgroups.borland.com>
References: <op.t44k6rb4ewlac1@centrino>
Organization: Asger-P
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: 83.73.201.25
X-Trace: newsgroups.borland.com 1200665145 83.73.201.25 (18 Jan 2008 06:05:45 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail