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

    Visual C++, Windows Operating System

    Windows operating system can have how many DC (device contexts)?



  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: Visual C++, Windows Operating System

    If I remember correctly, memory DCs are only limited by memory; for DCs which represent a window (from GetDC() ), you can only have 5 at any one time. In 16-bit Windows I believe subsequent attempts to get one would fail; I think in 32-bit Windows it now dumps one of the earlier DCs, which might cause undesirable side-effects in other programs.

    Rule-of-thumb: Don't grab more than one at a time, and release it as soon as possible!

    If you want to perform the same series of drawing commands on several DCs, consider creating and playing a Windows metafile.



    --
    Jason Teagle
    [email protected]

  3. #3
    Join Date
    Apr 1999
    Posts
    11

    Re: Visual C++, Windows Operating System

    5

    Mukthar

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