case WM_LBUTTONDOWN:
ShowWindow(SW_SHOW);
SetForegroundWindow();
break;
Puts the thread that created the window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The foreground window is the window with which the user is currently working. The foreground window applies only to top-level windows (frame windows or dialogs boxes). 这是一个Windows Bug.我这里有一个现成的,要不要?发给你?
解决方案 »
- 怎样将新建的一个类跟资源关联?
- RS-485芯片和电脑连接的收发问题
- 请问CRuntimeClass::CreateObject怎么总返回NULL
- 在矩形框中如何显示jpg图片
- vc中的Output窗口是怎么做的?
- 谁能帮忙?如何设定代理服务器?
- 怎么隐藏主窗口,在登录验证身份成功后,关闭登录窗口,再显示主窗口,不要主窗口出现一闪而过的痕迹。
- 请问如何设置CFileDialog打开时的目录为本地物理光驱的根目录
- 2910元买这个电脑值不值?
- 关于Unicode 和 MBCS的一个简单问题
- 马上结帖,四色五入函数
- 关于CRecordset::GetFieldValue()的几点不解,(送分,不拿会遭天谴。。。)
http://codeguru.earthweb.com/shell/tbhide.html
在那里有一个完整的例子,你改一下就可以用了,而且上面都有详细的说明