views:

17

answers:

0

I have a form that I am attempting to override the WndProc subroutine on. I am using GetDCEx to get a DC handle to my form. According to Microsoft's documentation on using GetDCEx, my form must have the CS_OWNDC or the CS_PARENTDC flag set my window class in order to use GetDCEx. According to Spy++, my window does not have these class attributes. My question is, how can I assign CS_OWNDC or make the form owner-drawable so I can use GetDCEx in my program? I am using C#, by the way.