TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Edwin Groothuis
from: Frederik Retsema
date: 1995-04-20 18:43:00
subject: Alignmet in resourcefiles

Hi Edwin,

EG> if a user drags a window/dialogbox to a certain location on the desktop,
EG> I want it to reappear it there the next time. I'm quite sure it's
EG> possible, but how? Does anybody have examples for me?

Use WinStoreWindowPos and WinRestoreWindowPos for this: OS/2 will store the
info in the OS2.INI. Both have resp. the applicationname, a keyname and the
windowhandle as parameter. They will return a boolean indicating if the
operation was a success.

The applicationname and the keyname can be chosen by the programmer: it may
be any string.

Does anyone know a function to remove an entry made by WinStoreWindowPos
from OS2.INI ?

Bye,

Frederik

--- FMail 0.96G/ Golded 2.41
* Origin: This was Frederik Retsema, Amstelhoek, Holland (2:280/901.35)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 280/901 0 801 283/512 396/1 270/101 105/103 42 712/515 711/808 809 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™.