Re: wm_paint not enough?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bjarne Nielsen (bnielsen_NO_SPAM_NO_at_mail.dk)
Date: 03/08/04


Date: Mon, 8 Mar 2004 23:22:08 +0100


"Mijit" <anonymous@discussions.microsoft.com> skrev i en meddelelse
news:AAB13716-3F59-474E-B16C-A3BF8FD9B382@microsoft.com...
> I am developing an MFC Dialog based app. On the dialog app, I am using
a disabled edit control to display some graphic output.
> I am trying to use a WM_PAINT handler for the dialog to redisplay the
graphic whenever required. With the Wm_Paint handler in place, one can drag
the dialog box off the desktop and back on, or drag anther window across the
dialog window, and the output is correctly restored.
> However, when the window is resorted after being minimized, it appears
the wm_paint handler is not called. Also if another window is dragged on
top of the dialog box and then minimized, no update occurs.
> Any ideas?

I sounds like the WM_PAINT message handler is for your dialog, but shouldn't
it be for the control instead?

-- 
Bjarne Nielsen


Relevant Pages

  • Re: Thread Deadlock
    ... How can an app update ... > does not get out of the event handler until the dialog is closed. ... Every window has a function that gets called when a message needs to be ... This function is called from a Message Pump. ...
    (microsoft.public.vc.mfc)
  • Re: Seeking: some advice about program structure (MFC dialog app)
    ... dialog app is actually the best possible app. ... you add its name to the two listbox controls. ... Add OnLButtonDown, OnLButtonUp, OnMouseMove handlers, and an OnPaint handler. ... When you click the mouse down and drag, the image in the window being dragged is moved, ...
    (microsoft.public.vc.mfc)
  • Re: wm_paint not enough?
    ... Subclass a CStatic and use that. ... On the dialog app, I am using a disabled edit control to display some graphic output. ... Also if another window is dragged on top of the dialog box and then minimized, ...
    (microsoft.public.vc.mfc)
  • Re: How to suppress SW_MAXIMIZE flag?
    ... handler, you can ignore any message that has SC_MAXIMIZE (in a dialog-based app, there is ... button disabled, so, seems there's no way to maximize the window. ... MVP Tips:http://www.flounder.com/mvp_tips.htm- Hide quoted text - ...
    (microsoft.public.vc.mfc)
  • Re: Steve Carroll does not know the difference between saving and quitting.
    ... or in an app where it can be used for additional work it ... Most apps cannot be used with no window open... ... yet it does not quit. ... And nor should it Snit! ...
    (comp.sys.mac.advocacy)