I have the following C++ code:
HRESULT hr = S_OK;
hr = DwmExtendFrameIntoClientArea(this->Handle, &margins);
But, when I try to compile I get the following error:
error C2664: 'DwmExtendFrameIntoClientArea' : cannot convert parameter 1 from 'System::IntPtr' to 'HWND'
Is there any other method to get the HWND
of my form?