Click to See Complete Forum and Search --> : Painting


balak yap
May 11th, 1999, 05:22 AM
Hello;
I try to get HDC of my Dialog and paint something on it ,
later, i use BitBlt to copy the thing i draw into a CompatibleDC,
but if i try to HIDE my dialog so others
cannot see..what happen is if the Dialog is HIDE (this is must in my program),
(sure i can't see what i paint...)
and the BitBlt copy the Desktop Window into CompatibleDC
the HDC i get seem like wrong,
or...anything wrong? any idea?
thanks


Hello World!!!

May 11th, 1999, 07:49 AM
This is correct behavior. If window is hidden you can' blt it because it is not there. Use a memory DC instead.

balak yap
May 11th, 1999, 09:22 PM
Thanks, but mind to tell me how to create a memory DC which cannot be see but can paint as usual
DC? I check CreateCompatibleDC, it need a HDC which "shall" be show..(i try hide, but cannot work).
Thanks

Hello World!!!