//设置点击任务栏按钮,对话框最小化或还原显示
LONG lWndLong = GetWindowLong(this->m_hWnd, GWL_EXSTYLE);
lWndLong |= WS_EX_TOPMOST;
SetWindowLong(this->m_hWnd, GWL_EXSTYLE, lWndLong);
ModifyStyle(0, WS_SYSMENU | WS_MINIMIZEBOX, 0);
//设置隐藏对话框在任务栏的按钮
ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);//从任务栏中去掉.
或
ModifyStyleEx(WS_EX_APPWINDOW,WS_EX_TOOLWINDOW);//从任务栏中去掉.
SetWindowPos(&wndTop,0,0,0,0,NULL);
//设置显示对话框在任务栏的按钮
ModifyStyleEx(0, WS_EX_APPWINDOW);