Click here to Skip to main content
12,447,275 members (57,724 online)
Click here to Skip to main content
Add your own
alternative version

Stats

71.7K views
2.5K downloads
21 bookmarked
Posted

MousePos

, 25 Aug 2002
Rate this:
Please Sign up or sign in to vote.
A mouse tracking window that displaying the current mouse position or current local time.
<!-- Download Links --> <!-- Add the rest of your HTML here -->

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

Share

About the Author

YangTze
Web Developer
China China
Hi,I'm YangTze!

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralAwesome~Thx~! Pin
Arthurchu23-Oct-07 15:30
memberArthurchu23-Oct-07 15:30 
GeneralI WANT TO ADD CLICK Pin
syamak14-Jun-04 22:47
membersyamak14-Jun-04 22:47 
Generalsensor of the mouse Pin
dnqhung2-Jun-04 18:11
memberdnqhung2-Jun-04 18:11 
GeneralA little bug I find in MousePos in the function &quot;HFONT MyCreateFont()&quot; Pin
soke8-Dec-03 14:01
membersoke8-Dec-03 14:01 
General@_@ Pin
YangTze9-Dec-03 21:41
memberYangTze9-Dec-03 21:41 
GeneralThanks! Pin
YangTze10-Jun-04 15:36
memberYangTze10-Jun-04 15:36 
QuestionHow Can I make the window transparent? Pin
Aymen++29-Nov-02 12:14
memberAymen++29-Nov-02 12:14 
GeneralPretty Good!! Pin
WREY9-Sep-02 0:48
memberWREY9-Sep-02 0:48 
Generalvery good Pin
baifriend4-Sep-02 19:15
sussbaifriend4-Sep-02 19:15 
GeneralGood Job Pin
Francisco Campos29-Aug-02 9:16
memberFrancisco Campos29-Aug-02 9:16 
GeneralRe: Good Job Pin
YangTze29-Aug-02 16:44
memberYangTze29-Aug-02 16:44 

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

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

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