CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007
    Posts
    210

    hooking into WM_PAINT event of an application

    Hi can anyone show me how to hook into the paint event of an application for example calculator.

    What i would like to do i add additional functionality when the screen is refreshed.

    Thanks Matt.

  2. #2
    Join Date
    Feb 2003
    Location
    California
    Posts
    334

    Re: hooking into WM_PAINT event of an application

    What I would do is:
    1. Subclass the application's main window.
    2. Look for WM_PAINT
    - Pass message to original window function, then add your own drawing afterwards.
    3. Pass on all other messages wholesale.
    Henri Hein
    Principal Engineer, Propel
    Do not credit Propel with my views or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured