Home > Software engineering >  About the Windows API in GetDC function (HWND)
About the Windows API in GetDC function (HWND)

Time:09-17

In HDC HDC=GetDC (HWND) of the equipment set of attributes do not affect other HDC, so be sure to use the same HDC when drawing,
If outside the sub function set HDC properties, draw in child use this property in a function, must pass the HDC variables,
After the releaseDC (HDC),

CodePudding user response:

Your problem?

CodePudding user response:

refer to the original poster sunger7 response:
in HDC HDC=GetDC (HWND) of the equipment set of attributes do not affect other HDC, so be sure to use the same HDC when drawing,
If outside the sub function set HDC properties, draw in child use this property in a function, must pass the HDC variables,
After the releaseDC (HDC),

Wrong
  • Related