Magnifying Glass

Sample Image 1

Sample Image 2 Sample Image 3

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

Updates

Fixed problems with 1/29/2002 update:

  1. Redrawing problem in Windows 95, 98
  2. Compilation error when SDK is not installed.

Downloads

Download demo project - 31 Kb


Comments

  • Simply outstanding

    Posted by Tomy Jeon on 03/21/2006 06:58pm

    I'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.

    Reply
  • V. Good

    Posted by Legacy on 05/24/2002 12:00am

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

    Reply
  • Selectively enable

    Posted by Legacy on 05/22/2002 12:00am

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

    • DING

      Posted by anjiwen on 06/21/2007 02:31am

      DING

      Reply
    Reply
  • This is great!

    Posted by Legacy on 01/31/2002 12:00am

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

    Reply
  • Congratulations

    Posted by Legacy on 11/20/2001 12:00am

    Originally 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

    Reply
  • Compile Error C2664

    Posted by Legacy on 11/19/2001 12:00am

    Originally 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
    signed int,long)'
    None of the functions with this name in scope match the target type

    Reply
  • Nice Job

    Posted by Legacy on 11/19/2001 12:00am

    Originally posted by: J. Doolin


    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

  • Learn How A Global Entertainment Company Saw a 448% ROI Every business today uses software to manage systems, deliver products, and empower employees to do their jobs. But software inevitably breaks, and when it does, businesses lose money -- in the form of dissatisfied customers, missed SLAs or lost productivity. PagerDuty, an operations performance platform, solves this problem by helping operations engineers and developers more effectively manage and resolve incidents across a company's global operations. …

Most Popular Programming Stories

More for Developers

RSS Feeds