Window example for C++ 5.0 and later
//This example shows how to call one of the Windows API functions and pass the ImageList Control's //Window property as a parameter.
//hide the control
::ShowWindow(HWND(m_LEADImageList.GetWindow()), SW_HIDE);
AfxMessageBox(TEXT("wait"));
//restore the window
::ShowWindow(HWND(m_LEADImageList.GetWindow()), SW_HIDE);