Re: Owner draw repaint



It's owner-draw if you are calling the graphic methods/functions from your code.

You need to ensure you are drawing in response to WM_PAINT, such as in OnPaint(). You've said nothing about when or where you are drawing so it's not possible to determine what the problem is. Perhaps you can provide more information.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Tage Korsdal Nielsen" <tkn@xxxxxxxxxx> wrote in message news:%239ew8r2VIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
Hi

I'm manually drawing some items on a dialog - guess this is called "Owner-Draw"?

When I slowly drag another window over my application, my items is not repainted - so I guess I fail to handle some message??

Resize, Max/minimize works ok

Rgds
Tage

.



Relevant Pages

  • Re: PDF output
    ... very nice effect by drawing the text in the desired fill colour ... that's what my wife says. ... One other thing I've just thought of that doesn't appear to be there and that I imagine will be on top of the "wanted list" you eventually receive after you have distributed your code is an "actual size" view of the page so that the user can see the entire page in detail using scroll bars. ... By the way, I thought you would have had a better response than you've had with your request for feedback regarding "real world" printer output and possible code additions, especially after posting such very useful code. ...
    (microsoft.public.vb.general.discussion)
  • Re: Required fields upon saving
    ... move the code that assigns the drawing number into Form_BeforeUpdate so that it occus at the last possible instant (after any MsgBox you use in that event.) That reduces the chance of a clash. ... Private Sub Form_Error(DataErr As Integer, Response As Integer) ...
    (microsoft.public.access.formscoding)
  • Re: Line on top of a user-defined control on a PictureBox
    ... linei created in design time. ... is that what you mean by VB native drawing method? ... I think I misread part of your question when I posted my earlier response and when I said, "Yes" ". ...
    (microsoft.public.vb.general.discussion)
  • Re: Ruby on the rise in Brazil
    ... His response was "merely a couple of orders of magnitude ... Drawing conclusions is left as an exercise to the reader. ...
    (comp.lang.ruby)
  • Re: screen refreshing
    ... I would say Tom is correct, in that the drawing is not ... being done in response to the WM_PAINT message. ... OP needs to use the PaintDC in OnPaint. ...
    (microsoft.public.vc.mfc)