hi

I draw on static window(label) . and when my main proc gets WM_PAINT it repaint my label . how can i stop it from happend?


bye

eko
Posted on 2002-02-26 08:02:36 by eko
i don't know what you meant exactly but i think
"subclassing" is in the most cases a good answer :)
if i understand you right just subclass your static-
control (SetWindowLong) and respond to WM_PAINT
with 0...
Posted on 2002-02-26 08:16:51 by mob
i tried subclassing doesnt work .
maybe i wasnt clear enough

here is my program( exe file)

click on one of the static . and move the scrollbar (the color changes)
now move to another window (force the window to get wm_paint)

the color goes a way ... how can i solve this little problem ?
Posted on 2002-02-26 12:12:54 by eko
and when my main proc gets WM_PAINT it repaint my label . how can i stop it from happend?


I infer by your post that your problem is that whenever your app gets a WM_PAINT msg, it does not get painted propperly.
That is the BMP or whatever dissapears.
If that is the case, then you SHOULD include code so that your image gets painted in each WM_PAINT message.
I?m sorry but i?m not at home and cannot provide any working code. But this is a very basic problem and should be fixed after a 5? tutorial reading.
Byez!

Latigo
Posted on 2002-02-26 12:30:09 by latigo
yeah i know i can draw what i need when i recive wm_paint
but i thought that there is some other way to done this
Posted on 2002-02-26 12:46:27 by eko