Click to See Complete Forum and Search --> : how to hide a window


AviLaviad
September 22nd, 2005, 01:46 AM
hi,
which message need i send to hide a specific window?
if i want to show i send WM_SHOWWINDOW, whats the opposite?
(I dont want to close it...)

Thanks in advance,
Avi.

Alex F
September 22nd, 2005, 02:11 AM
WM_SHOWWINDOW Notification
wParam
Specifies whether a window is being shown. If wParam is TRUE, the window is being shown. If wParam is FALSE, the window is being hidden.

AviLaviad
September 22nd, 2005, 02:17 AM
PostMessage(m_hThisWindow,WM_SHOWWINDOW,FALSE,0);
nor
SendMessage(m_hThisWindow,WM_SHOWWINDOW,FALSE,0);

not working... :ehh:

am i sending the wrong params?

Alex F
September 22nd, 2005, 02:19 AM
ShowWindow(m_hThisWindow, SW_HIDE);

AviLaviad
September 22nd, 2005, 02:21 AM
YEP!
thats the one! :thumb:

thanks mate,
Avi. :)