SetWindowPos

时间:2021-02-24 23:27:33   收藏:0   阅读:36

SetWindowPos(hwnd01, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
注意: SWP_NOMOVE | SWP_NOSIZE用于忽略SetWindowPos函数的第3,第4,第5,第6参数。

第二个参数可以是:

HWND_BOTTOM

HWND_NOTOPMOST (将窗口设置为普通窗口)

HWND_TOP

HWND_TOPMOST (将窗口设置为始终位于顶部)

see

https://stackoverflow.com/questions/14989062/set-a-window-to-be-topmost

原文:https://www.cnblogs.com/develon/p/14443040.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!