CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Painting

  1. #1
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    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!!!

  2. #2
    Guest

    Re: Painting

    This is correct behavior. If window is hidden you can' blt it because it is not there. Use a memory DC instead.


  3. #3
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    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
  •  





Click Here to Expand Forum to Full Width

Featured