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

Magnifying Glass

By , 25 Dec 2001
 

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)

About the Author

Alex Fr
Software Developer
Israel Israel
Member
No Biography provided

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.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralDosent work correctly with dual screensmemberBob100015 Oct '09 - 14:55 
If used on a dual screen system - doesn’t work on second screen.
GeneralCompile errormemberBob100015 Oct '09 - 14:44 
Ok this message feels as though its from the future for this project Smile | :)
The project dosent compile under VS2009 return type missing SystemTraySDK.hpp
// Create the tray icon
BOOL Create(HINSTANCE hInst, HWND hParent, UINT uCallbackMessage, LPCTSTR szTip,
 

The BOOL is missing
GeneralRapid clicking causes weird effect...memberare_all_nicks_taken_or_what22 Sep '09 - 23:31 
... you see the magnification window in the newly created magnification window, so to speak.
QuestionUse it in a freeware ?membervincennes22 Sep '08 - 22:31 
Hello,
 
I like very much your magnifying glass application. Is it possible for me to include it in a freeware developpement ? Do I need to include some licensing information in my software if I use it ?
What is the legal status of this code ?
 
Thank you for your answer
AnswerRe: Use it in a freeware ?memberAlex Fr24 Sep '08 - 8:10 
According to the The Code Project Open License (CPOL), this code is absolutely free for use in any type of applications. You may decide, if you want, to provide link to this article in your program About Box or documentation.
GeneralLive updatingmemberdazzyboy17 Sep '08 - 3:56 
Very nice.
Just one thing I need. I need to be able to show live updating of the screen, for example, a flashing gif. From what I have seen from Zoomplus, this is also not implemented (but surprisingly. the windows-packaged magnifier updates perfectly! Incredible but true). Regards.
GeneralRe: Live updatingmemberAlex Fr18 Sep '08 - 19:13 
As you can see from the program algorithm, it takes screenshot when magnifying glass is activated, and shows static image all time when the glass is active. To make dynamic update, it is necessary to implement dynamic refresh by timer, this can cause flickering. Currently I don't have plans to update this program, it remains nice toy from good old days of unmanaged programming.
JokeGreat!membermegaadam5 May '06 - 4:05 
Thanx!
 
A very pretty little utility for all of us in GUI develeopment. I bet Chris Maunder would have loved it during his "hours of squinting at pixels" while working on his superbly fantastic CGridCtrl. Well done!
 
_____________________________________
Action without thought is not action
Action without emotion is not life
GeneralMagnification for text in imagememberharsha vardhan18 Feb '06 - 19:05 
This is an immediate requirement for my project.We had an image file on the web page, according to the requirement when we
click the mouse om the specified text we should get magnification of that specified text.....
I would be appreciate if anyone help to get that code and an activex control for that magnification
QuestionHow would I keep the mouse functionality...memberbarcibus25 Apr '03 - 7:16 
Lets say I wanted to keep the mouse active and visible in the magnified area.
 
In other words, rather than the program taking control of the mouse functions to turn the lens on and off, the mouse would still be active on the desktop (or any other windows), and the lens would be on all the time (magnifying the area around the mouse cursor).
 
How would I go about doing that?
 
Great prog btw, I searched forever for something just like it (w/ source code).
 
-barcibus

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

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 26 Dec 2001
Article Copyright 2001 by Alex Fr
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid