Magnifying Glass
Posted
by Unknown Unknown
on January 29th, 2002
Environment: C++ 6.0, NT 4.0 or later, Win95 or later
Magnifying Glass is application that adds icon to system tray. Magnification is activated by clicking of this item. After this program shows magnifying glass in any place of 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 unvisible TOPMOST window to capture mouse input on the whole screen.
- Using message crackers from WindowsX.h.
- Windows graphics (GDI).
- CamStudio project. Using unvisible window to capture mouse events on the whole screen. http://www.atomixbuttons.com/vsc
- Chris Maunder. Adding Icons to the System Tray. http://www.codeproject.com/shell/systemtray.asp
- Chris Maunder. Creating an application with no taskbar icon. http://www.codeproject.com/docview/notaskbaricon.asp
- Jeffrey Richter. Programming Applications for Microsoft Windows. Microsoft Press 1999. Appendix B. Message Crackers.
Updates
Fixed problems with 1/29/2002 update:
- Redrawing problem in Windows 95, 98
- Compilation error when SDK is not installed.

Comments
Simply outstanding
Posted by Tomy Jeon on 03/21/2006 06:58pmI've found number of magnifiers to make my own. And I bet your work is the simplest but a nice job among all open magnifiers... However, The only problem here is that this program captures whole screen when the program activates its magnifying glass, so backgrounds such as flash animation or animated gif get freezed. This makes your program not interactive one in a view of users.
ReplyV. Good
Posted by Legacy on 05/24/2002 12:00amOriginally posted by: Anand Hinge
The source code does not only serve its purpose to magnify, but it is also one of the best written code that I have seen. Very good. Keep it up. Enjoy Life...
ReplySelectively enable
Posted by Legacy on 05/22/2002 12:00amOriginally posted by: k
The program's great.
I want to magnify only certain windows. So, how do I selectively enable the magnifying glass?
Is there a way to determine which window is beneath the capture window?
Thanks.
-
ReplyDING
Posted by anjiwen on 06/21/2007 02:31amDING
ReplyThis is great!
Posted by Legacy on 01/31/2002 12:00amOriginally posted by: James Lee
This is really great! It is an alternate MS Magnifier product under Accessory/Accessibility. Does this cause you to make such a program? seems to me it is more useful than its counterpart.
ReplyCongratulations
Posted by Legacy on 11/20/2001 12:00amOriginally posted by: Peter Mares
Well done on this submission. Was especially impressed with the speed and the "round" magnification. Keep up the good work :)
Peter
ReplyCompile Error C2664
Posted by Legacy on 11/19/2001 12:00amOriginally posted by: Hans Wedemeyer
Tried to compile this, what's wrong !
MainWindow.cpp(121) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,un
Replysigned int,long)'
None of the functions with this name in scope match the target type
Nice Job
Posted by Legacy on 11/19/2001 12:00amOriginally posted by: J. Doolin
Reply