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

  • Hurricane Sandy was one of the most destructive natural disasters that the United States has ever experienced. Read this success story to learn how Datto protected its partners and their customers with proactive business continuity planning, heroic employee efforts, and the right mix of technology and support. With storm surges over 12 feet, winds that exceeded 90 mph, and a diameter spanning more than 900 miles, Sandy resulted in power outages to approximately 7.5 million people, and caused an estimated $50 …

  • When it comes to desktops – physical or virtual – it's all about the applications. Cloud-hosted virtual desktops are growing fast because you get local data center-class security and 24x7 access with the complete personalization and flexibility of your own desktop. Organizations make five common mistakes when it comes to planning and implementing their application management strategy. This eBook tells you what they are and how to avoid them, and offers real-life case studies on customers who didn't …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds