Re: determine invalid window process
- From: "expvb" <nobody@xxxxxxx>
- Date: Tue, 29 Jul 2008 12:57:14 -0400
"X. Zhang" <XZhang@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:84630312-7D18-475E-84D7-0CD4E3063CC0@xxxxxxxxxxxxxxxx
Thanks, expvb.
I tried IsWindowVisible(hwnd), but it always returned 0, even if the main
window was visible.
I even tried lRet = GetWindowLong(hwnd, GWL_STYLE), and then check the
value
of (lRet And WS_VISIBLE). It's 0 too, even when the main window was
visible.
So weird.
Any ideas?
IsWindow() should tell if the handle is a valid hWnd. It's possible that the
window has width and height of 0, or moved off screen. Use Spy++ to see the
screen coordinates. If you don't have Spy++, use this free alternative:
http://www.windows-spy.com
.
- Follow-Ups:
- Re: determine invalid window process
- From: X. Zhang
- Re: determine invalid window process
- References:
- Re: determine invalid window process
- From: expvb
- Re: determine invalid window process
- Prev by Date: Re: CreateProcessAsUser and Windows Vista trouble
- Next by Date: Re: determine invalid window process
- Previous by thread: Re: determine invalid window process
- Next by thread: Re: determine invalid window process
- Index(es):
Relevant Pages
|
Loading