Because rc reflects only the values of WS_VISIBLE style bits, rc may be set to TRUE even if hwnd is totally obscured by other windows. Use WinIsWindowShowing to determine if any part of the window is actually visible.