保持窗口至顶层

::SetWindowPos(this->GetSafeHwnd(), HWND_TOPMOST,0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | WS_EX_TOPMOST);
SetWindowPos(hwnd,-1,0,0,0,0,0B);

只要这个函数就OK了.真郁闷还到找!!!!!!!!!!!

SetWindowPos(this->GetSaveHwnd(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|WS_EX
BOOL SetWindowPos(
  HWND hWnd,                        //窗口
  HWND hWndinsertAfter,   // 窗口口句柄,在窗口列表中!!!!!! HWND_TOPMOST 将窗口置于列表顶部,
  int X,      //  窗口新的X坐标
  int Y,    //窗口新的Y坐标
  int cx,     //指定新的窗口宽度
  int cy,   //指定新的窗口高度
  UINT uFlags
);

随机日志

发表评论

0 评论.

Leave a Reply



[ Ctrl + Enter ]

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

CNXCT小组的博客 is Stephen Fry proof thanks to caching by WP Super Cache