Click here to Skip to main content
Licence 
First Posted 25 Aug 2002
Views 62,467
Bookmarked 19 times

MousePos

By | 25 Aug 2002 | Article
A mouse tracking window that displaying the current mouse position or current local time.

Introduction

The "MousePos" is a Win32 SDK application that displays the current mouse position or current local time inside a window (looks like ToolTip) which follows the mouse cursor

I get the Current Mouse Position or Current Local Time inside WM_TIMER processing switch/case, then format this information as a string using the Win32 API function GetTextExtentPoint32 to calculate the size that the string will occupy in the displaying window.

You can click the "MousePos" button on the Windows Taskbar to popup it's menu, switch the displaying mode or change the displaying background/font & color.

So, with this demo you can develop your own variation on the Mouse cursor!.

Thank you for your viewing this article!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

YangTze

Web Developer

China China

Member

Hi,I'm YangTze!


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralAwesome~Thx~! PinmemberArthurchu15:30 23 Oct '07  
GeneralI WANT TO ADD CLICK Pinmembersyamak22:47 14 Jun '04  
Generalsensor of the mouse Pinmemberdnqhung18:11 2 Jun '04  
GeneralA little bug I find in MousePos in the function "HFONT MyCreateFont()" Pinmembersoke14:01 8 Dec '03  
General@_@ PinmemberYangTze21:41 9 Dec '03  
GeneralThanks! PinmemberYangTze15:36 10 Jun '04  
QuestionHow Can I make the window transparent? PinmemberAymen++12:14 29 Nov '02  
GeneralPretty Good!! PinmemberWREY0:48 9 Sep '02  
Generalvery good Pinsussbaifriend19:15 4 Sep '02  
GeneralGood Job PinmemberFrancisco Campos9:16 29 Aug '02  
GeneralRe: Good Job PinmemberYangTze16:44 29 Aug '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 26 Aug 2002
Article Copyright 2002 by YangTze
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid