TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andreas Just
from: Jeffrey Habets
date: 1996-10-30 18:00:08
subject: window allways on top

Hallo Andreas!

28 Oktober 1996 08:27, schreef Andreas Just aan all:

 AJ> I'm searching for a solution to put a window allways on top of an unknown
 AJ> window (StarOffice Writer).

You could use a WM_TIMER and do a WinSetWindowPos every second or so.. But
then it fill float on top of all windows ofcourse. Don't know if you want
that.

 AJ> Now I think it should be better to set the parent/owner of this win to
 AJ> the main framewindow of StarWriter, but how can I reach the handle from
 AJ> this window ?

If you now that StarWriter will be the active window when you're app wants
to access it you could do:

hwndActive = WinQueryActiveWindow(HWND_DESKTOP);

ÖÄÄ¿ ÒÄÄ¿ ÒÄÄ¿ ÒÄÄ¿ ÖÄÒÄ¿ ÖÄ¿   jhabets{at}pi.net
º Ä¿ ÇÄÂÙ ÇÄ   ÇÄ     º   ÖÄÙ
ÓÄÄÙ Ð Á  ÐÄÄÙ ÐÄÄÙ   Ð   ÓÄÄÙ, Jeffrey 

--- GoldED/2 2.50+ /\ FMail/2 1.02+
* Origin: Why Windows? Simply switch of your Turbo.. (2:284/312.3)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 284/312 3 5 283/512 280/801 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.