Click here to Skip to main content
11,479,034 members (61,458 online)
Click here to Skip to main content

Magnifying Glass

, 25 Dec 2001 CPOL 192.5K 3.2K 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

Introduction

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).

Acknowledgements:

History

26 Dec 2001:

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

License

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

Share

About the Author

Alex Fr
Software Developer
Israel Israel
No Biography provided

Comments and Discussions

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