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

  • As mobile devices have pushed their way into the enterprise, they have brought cloud apps along with them. This app explosion means account passwords are multiplying, which exposes corporate data and leads to help desk calls from frustrated users. This paper will discover how IT can improve user productivity, gain visibility and control over SaaS and mobile apps, and stop password sprawl. Download this white paper to learn: How you can leverage your existing AD to manage app access. Key capabilities to …

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds