Re: Win32 Resources

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, 7 Feb 2000 13:47:09 -0800, Cuny, David at DSS <David.Cuny at DSS.CA.GOV>
wrote:

>Here's a question for you Windows wizards out there. I'm suspect I'm
>handling this situation incorrectly. As I understand it, there are three
>steps to changing resources (brush, pen, font, etc.).


  David:
     I don't know if this helps or not because I have trouble
     understanding everything you are doing in your win32 library.

     According to a book I have.
     Be sure are NOT using GetDC and ReleaseDC functions in place of
     any BeginPaint and EndPaint functions. TheBeginPaint and EndPaint
     function perform special functions in addition to returning a
     handle to DC. For instance BeginPaint sends WM_ERASEBKGND that
     erases the invalid area, gets the update area, and validates
     any previous invalid areas and so on. This can causes funny things
     to happen if the DC functions are intermixed. Maybe this also might
     have something to do with fonts changing ?
  Bernie

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu