在initDialog中直接添加下面代码即可
LONG dwStyle = ::GetWindowLong(GetSafeHwnd(), GWL_STYLE);
dwStyle &= ~(WS_BORDER);
::SetWindowLong(GetSafeHwnd(), GWL_STYLE, dwStyle);
SetWindowPos(&wndTop,
0,
0,
GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN),
SWP_SHOWWINDOW);