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)
orShowWindow(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.
精彩评论