Windows函数取消窗口自带阴影
HWND hwnd = reinterpret_cast(m_pSettingMenu->winId()); if (hwnd) { DWORD class_style = ::GetClassLong(hwnd, GCL_STYLE); class_style &= ~CS_DROPSHADOW; ::SetClassLong(hwnd, GCL_STYLE, class_style); // windows系统函数 }
HWND hwnd = reinterpret_cast(m_pSettingMenu->winId()); if (hwnd) { DWORD class_style = ::GetClassLong(hwnd, GCL_STYLE); class_style &= ~CS_DROPSHADOW; ::SetClassLong(hwnd, GCL_STYLE, class_style); // windows系统函数 }