Welcome to shell: revealed Sign in | Join | Help
in Search

Browse by Tags

All Tags » History » Code
Sorry, but there are no more tags available to filter with.
  • What went wrong in Windows 95 if you use a system color brush as your background brush?

    If you want to register a window class and use a system color as its background color, you set the hbrBackground member to the desired color, plus one, cast to an HBRUSH: wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); Windows 95 introduced ''system color brushes'', which are a magic type of brush which always paint in the corresponding ...
    Posted to External News (Weblog) by Anonymous on November 28, 2006
  • What does the CS_CLASSDC class style do?

    Last time, I talked about the historical background for the CS_OWNDC class style and why it starts out sounding like a good idea but when you think about it some more turns out to be an awful idea. The CS_CLASSDC class style is the same thing, but worse, for it takes all the problems of CS_OWNDC and magnifies them. Recall that the CS_OWNDC ...
    Posted to External News (Weblog) by Anonymous on June 2, 2006
  • What does the CS_OWNDC class style do?

    Recall that window DCs are most commonly used only temporarily. If you need to draw into a window, you call BeginPaint or, if outside of a paint cycle, GetDC, although painting outside of a paint cycle is generally to be avoided. The window manager produces a DC for the window and returns it. You use the DC, then restore it to its original state ...
    Posted to External News (Weblog) by Anonymous on June 1, 2006
Powered by Community Server, by Telligent Systems © 2006 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement.