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.我这里有一个现成的,要不要?发给你?
http://codeguru.earthweb.com/shell/tbhide.html
在那里有一个完整的例子,你改一下就可以用了,而且上面都有详细的说明