开发者

message to show hide a window

is there 开发者_如何学Pythona message that I can send to a window that will have the same effect as ShowWindow(SW_SHOW) or ShowWindow(SW_HIDE)


Is there a message that I can send to a window that will have the same effect as ShowWindow(SW_SHOW) or ShowWindow(SW_HIDE)?

No.


::SetWindowPos( window_handle, 0, 0, 0, 0, 0, ( visible ? SWP_SHOWWINDOW : SWP_HIDEWINDOW ) | SWP_NOMOVE | SWP_NOSIZE );


Did you try WM_SHOWWINDOW?

I'm not 100% sure if it will actually show/hide a window when posted, or whether it's only an "informative" hint to the application that this is happening, but it's worth a try.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜