CreateCompatibleDC(null) missing? #604
Answered
by
Gavin-Williams
Gavin-Williams
asked this question in
Q&A
-
CreateComptibleDC needs an overload that takes null in order to get the applications window drawing context. There must be a way to get this but it's not obvious. https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createcompatibledc |
Beta Was this translation helpful? Give feedback.
Answered by
Gavin-Williams
Jul 17, 2022
Replies: 2 comments 3 replies
-
I think this works?
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Gavin-Williams
-
I don't understand why you say the API is missing. When I ask for CreateCompatibleDC in NativeMethods.txt, it appears with methods that accept null or default(HDC). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this works?