标签: c++ handle hwnd dwm
我有以下C ++代码:
HRESULT hr = S_OK; hr = DwmExtendFrameIntoClientArea(this->Handle, &margins);
但是,当我尝试编译时,我收到以下错误:
error C2664: 'DwmExtendFrameIntoClientArea' : cannot convert parameter 1 from 'System::IntPtr' to 'HWND'
是否有其他方法可以获取表单的HWND?
HWND