在OnInitDialog()中添加 SetWindowPos(&wndTop, 0, 0, 0, 0, NULL); SetWindowLong(this->m_hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);