tongxuemen!
any ideas?
Greeets
any ideas?
Greeets
invoke IsWindowVisible,hWnd
.if !eax
jmp Window_Not_Visible
.endif
.if !eax
jmp Window_Not_Visible
.endif
uff, thanks
Bubu, why not get the PlatformSDK? Or learn to use http://msdn.microsoft.com ?
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
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
how to put a window in front?
SetAActiveWindow/SetFocus doesnt work. - I cant use the msdn...*hehe*
SetAActiveWindow/SetFocus doesnt work. - I cant use the msdn...*hehe*
That'll be SetWindowPos with HWND_TOP - for the actual details you'll need some kind of API reference
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.
how to put a window in front?
SetAActiveWindow/SetFocus doesnt work. - I cant use the msdn...*hehe*
Ah, now i remebmer! - Thanks!