Author Topic: Undocumented flag for "GetDCEx"  (Read 2799 times)

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 1114
  • Gender: Male
    • it-berater
Undocumented flag for "GetDCEx"
« on: October 06, 2011, 03:56:33 PM »
GetDCEx can be used to retrieve the device context for a window during processing of %WM_NCPAINT.
The documentation states that this is achieved by using

Code: [Select]

However, this call never works, because there is an undocumented flag to include which is not mentioned anywhere.

And this is how it works:

Code: [Select]
GetDCEx(hwnd, hrgn, DCX_WINDOW | DCX_INTERSECTRGN | 0x10000)