Click here to Skip to main content
11,645,087 members (66,824 online)
Click here to Skip to main content

Magnifying Glass

, 25 Dec 2001 CPOL 194.5K 3.3K 81
Rate this:
Please Sign up or sign in to vote.
A magnifying glass activated from the system tray.

Sample Image 1

Sample Image 2 Sample Image 3


Magnifying Glass is an application that adds an icon to the system tray. The Magnification is activated by clicking on this icon. When the program is run, it shows a magnifying glass in any place on the screen when left mouse button is pressed.

Topics covered in this program:

  • Using mutex in single-instance application.
  • Writing application that adds icon to system tray.
  • Using invisible TOPMOST window to capture mouse input on the whole screen.
  • Using message crackers from WindowsX.h.
  • Windows graphics (GDI).



26 Dec 2001:

  1. Redrawing problem in Windows 95, 98, reported by PJ Arends.
  2. Compilation problem when SDK is not installed.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Antarctica Antarctica
No Biography provided

You may also be interested in...

Comments and Discussions

AnswerRe: How would I keep the mouse functionality... Pin
Alex Farber26-Apr-03 20:04
memberAlex Farber26-Apr-03 20:04 
GeneralRe: How would I keep the mouse functionality... Pin
barcibus26-Apr-03 21:40
memberbarcibus26-Apr-03 21:40 
GeneralVery nice !! Pin
WREY6-Feb-03 1:13
memberWREY6-Feb-03 1:13 
GeneralCorrection Pin
Alex Farber28-Jan-03 20:19
memberAlex Farber28-Jan-03 20:19 
GeneralRe: Correction Pin
WREY4-Feb-03 2:23
memberWREY4-Feb-03 2:23 
GeneralRe: Correction Pin
Alex Farber4-Feb-03 2:40
memberAlex Farber4-Feb-03 2:40 
GeneralBug found Pin
Remon28-Jan-03 9:09
memberRemon28-Jan-03 9:09 
GeneralRe: Bug found Pin
Alex Farber28-Jan-03 18:55
memberAlex Farber28-Jan-03 18:55 
General... and then the code was stolen! Pin
apppp17-Dec-02 23:42
sussapppp17-Dec-02 23:42 
GeneralGreat work. One suggestion. Pin
Todd Smith2-Jan-02 20:53
memberTodd Smith2-Jan-02 20:53 
GeneralRendering HTML files in hidden window Pin
Pat O'Neil2-Jan-02 12:51
memberPat O'Neil2-Jan-02 12:51 
GeneralRe: Rendering HTML files in hidden window Pin
Todd Smith2-Jan-02 18:30
memberTodd Smith2-Jan-02 18:30 
GeneralRe: Rendering HTML files in hidden window Pin
jofrasier2-Jan-02 22:46
memberjofrasier2-Jan-02 22:46 
Questionzoom+ instead? Pin
Anonymous131-Dec-01 1:25
memberAnonymous131-Dec-01 1:25 
AnswerRe: zoom+ instead? Pin
Anonymous17-May-02 11:35
memberAnonymous17-May-02 11:35 
GeneralExcellent Work ! Pin
Garth J Lancaster30-Dec-01 10:18
memberGarth J Lancaster30-Dec-01 10:18 
GeneralRe: Excellent Work ! Pin
Alex Farber30-Dec-01 20:31
memberAlex Farber30-Dec-01 20:31 
GeneralOops... Pin
CKL26-Dec-01 23:53
memberCKL26-Dec-01 23:53 
GeneralRe: Oops... Pin
Alex Farber27-Dec-01 0:00
memberAlex Farber27-Dec-01 0:00 
QuestionUse GetDC(NULL)??? Pin
Ano26-Dec-01 13:10
memberAno26-Dec-01 13:10 
AnswerRe: Use GetDC(NULL)??? Pin
Tim Smith26-Dec-01 13:14
memberTim Smith26-Dec-01 13:14 
GeneralRe: Use GetDC(NULL)??? Pin
Christian Graus26-Dec-01 13:27
memberChristian Graus26-Dec-01 13:27 
GeneralRe: Use GetDC(NULL)??? Pin
Tim Smith30-Dec-01 11:18
memberTim Smith30-Dec-01 11:18 
GeneralRe: Use GetDC(NULL)??? Pin
archimedean4-May-03 4:40
memberarchimedean4-May-03 4:40 
GeneralRe: Use GetDC(NULL)??? Pin
Christopher Fairbairn29-Jun-04 5:06
memberChristopher Fairbairn29-Jun-04 5:06 
GeneralGreat Tool!! Pin
PJ Arends23-Dec-01 8:20
memberPJ Arends23-Dec-01 8:20 
GeneralRe: Great Tool!! Pin
PJ Arends26-Dec-01 19:19
memberPJ Arends26-Dec-01 19:19 
GeneralRe: Great Tool!! Pin
Alex Farber26-Dec-01 19:21
memberAlex Farber26-Dec-01 19:21 
GeneralTop Pin
Dylan Kenneally26-Nov-01 22:50
memberDylan Kenneally26-Nov-01 22:50 
GeneralIf the program is not compiled... Pin
Alex Farber26-Nov-01 20:47
memberAlex Farber26-Nov-01 20:47 
GeneralRe: If the program is not compiled... Pin
Gennady Oster26-Nov-01 23:05
memberGennady Oster26-Nov-01 23:05 
GeneralCool. Pin
Matt Philmon26-Nov-01 20:27
memberMatt Philmon26-Nov-01 20:27 

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 | Terms of Use | Mobile
Web02 | 2.8.150731.1 | Last Updated 26 Dec 2001
Article Copyright 2001 by 5678901234
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid