使一个窗口显示在最顶层
写了一个键盘钩子,当有符合条件的按键时:希望把我的程序窗口显示到最顶层,(就是安钩子的这个程序,已经作为共享变量而保存了)
::ShowWindow(hWndSendMessage,SW_SHOW);//may show the icon on task bar
::BringWindowToTop(hWndSendMessage);
::SetForegroundWindow(hWndSendMessage);
::SetActiveWindow(hWndSendMessage);
//above not success
::SetWindowPos(hWndSendMessage,CWnd::wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW);//only show icon on task bar
没有搞懂,用了一系列api,都没有显示出来,充其量在任务栏显示了一个icon,
哪位专家对下面的api有研究,各个函数的使用场合,区别,共同点,不同点,性能特征,使用注意事项
1.showWindow
2.BringWindowToTop
3.SetForeGroundWindow
4.SetActiveWindow
5.SetWindowPos
6.SetActiveWindow
7.SendMessage(h,WM_ACTIVATE..)
8.
etc.