TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Paul Sidorsky
date: 1995-03-23 00:11:20
subject: Window Sizes

Hello All!

I just started PM programming, and am doing all right, but I don't have any
books to look up some of the more trivial info., so I have to ask here. 
:-)

Anyhow, when setting my window size, I seem to have to include extra size
units for the title bar, menu bar, and border of the window my program is
running in. I'm calling WinSetWindowPos() right after doing all the
initialization stuff to do the sizing.

Is there a way to get the size of all the "extra" stuff so I can
exclude it from the "usable window size"?  Or, alternative to
that, is the size of the menu bar, title bar, and border always constant no
matter which graphics mode? Right now, I've factored the 640x480 sizes of
these items into my sizing calculations and everything is fine, but I'm
worried the sizes may be different for different graphics modes.

If this isn't possible, is there a way to do sizing _without_ having to add
extra units to offset the title bar and menu bar and borders?  I'd actually
much prefer this way, but if not I suppose I can cope with the other way.

I hope this is clear enough.  Thanks to any who can help me out.

 -- PaulS

--- FMail/386 1.0g
* Origin: C.R.I.S.I.S. HQ, Calgary AB, (403)686-0449, 28800 V.FC (1:134/31)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 134/31 17 3615/50 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™.