tongxuemen!

any ideas?



Greeets
Posted on 2004-01-17 07:49:01 by Bubu-Boy
invoke IsWindowVisible,hWnd
.if !eax
jmp Window_Not_Visible
.endif
Posted on 2004-01-17 08:14:32 by wizzra
uff, thanks
Posted on 2004-01-17 08:17:14 by Bubu-Boy
Bubu, why not get the PlatformSDK? Or learn to use http://msdn.microsoft.com ?
Posted on 2004-01-17 08:18:44 by f0dder
Bubu-Boy

Also it depends what you mean by 'visible' - Microsoft uses the term rather loosely

If you follow f0dder's good advice and get yourself the PlatformSDK (or at least a Win32.hlp file) and if you read carefully you will discover that IsWindowVisible retrieves the visibility state of the window - whether or not it has its WS_VISIBLE bit set - not whether you can actually see it

Similarly - if I may digress - using the TVGN_NEXTVISIBLE flag with the TVM_GETNEXTITEM message in a TreeView retrieves the next expanded item and this item may or may not actually be visible - it may be scrolled out of sight
Posted on 2004-01-17 09:03:51 by eGo
how to put a window in front?

SetAActiveWindow/SetFocus doesnt work. - I cant use the msdn...*hehe*
Posted on 2004-01-17 09:06:30 by Bubu-Boy
That'll be SetWindowPos with HWND_TOP - for the actual details you'll need some kind of API reference
Posted on 2004-01-17 09:21:42 by eGo
Also note that you can't bring a window to front when another app is foreground... at least not without fiddling a lot, I think it should be possible if your app receives a hotkey event.
Posted on 2004-01-17 09:24:17 by f0dder

how to put a window in front?

SetAActiveWindow/SetFocus doesnt work. - I cant use the msdn...*hehe*

Ah, now i remebmer! - Thanks!
Posted on 2004-01-17 09:26:58 by Bubu-Boy