|
-
May 11th, 1999, 05:22 AM
#1
Painting
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
#2
Re: Painting
This is correct behavior. If window is hidden you can' blt it because it is not there. Use a memory DC instead.
-
May 11th, 1999, 09:22 PM
#3
Thanks, but how to create memory DC
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!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|