TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Michael Duffy
date: 1994-11-01 11:30:38
subject: Finding Border widths....

Greetings all,
  I'm hoping someone can help me with this.  How does one find the width
of the border created with the FCF_BORDER flag?  So far I have only seen
1 pixel wide borders, but I don't want to go hard-coding "1"s into my 
program if there is a possibility of the border width changing, or if there
is a simple way to find it.  All I have come up with so far is to define the
size of the client area of a window, then call WinCalcFrameRect to get the 
dimentions after the border is added, and then do some arithmetic to find 
the border width.  Is there a better way?

Thanks for any help,
Michael "OS/2 Newbie" Duffy


... Yes, I program PCs.  Stop laughing.
--- GEcho 1.10+

* Origin: Knight Mare 405 672 5644 (1:147/3006)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 147/3006 1032 3615/50 229/2 12/2442 711/409 54/54 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™.