Click here to Skip to main content
Click here to Skip to main content

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!

Comments and Discussions

 
GeneralAwesome~Thx~! PinmemberArthurchu23-Oct-07 15:30 
GeneralI WANT TO ADD CLICK Pinmembersyamak14-Jun-04 22:47 
Generalsensor of the mouse Pinmemberdnqhung2-Jun-04 18:11 
GeneralA little bug I find in MousePos in the function &quot;HFONT MyCreateFont()&quot; Pinmembersoke8-Dec-03 14:01 
General@_@ PinmemberYangTze9-Dec-03 21:41 
GeneralThanks! PinmemberYangTze10-Jun-04 15:36 
QuestionHow Can I make the window transparent? PinmemberAymen++29-Nov-02 12:14 
GeneralPretty Good!! PinmemberWREY9-Sep-02 0:48 
Generalvery good Pinsussbaifriend4-Sep-02 19:15 
GeneralGood Job PinmemberFrancisco Campos29-Aug-02 9:16 
GeneralRe: Good Job PinmemberYangTze29-Aug-02 16:44 

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.

| Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 26 Aug 2002
Article Copyright 2002 by YangTze
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid