TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Martin Pollard
from: Johan Siegers
date: 1996-03-26 11:27:16
subject: 3-D status bar on client windows

Hi Martin,

 MP> I'm looking for a way to create a 3-D style status bar on the bottom of a
 MP> client window. 

I draw them myselves. Here is an example:
I put a static textfield (PROMPT) in my .RC file, and draw a raised border around it.

// Undocumented border types
#define DB_RAISED       0x0400
#define DB_DEPRESSED    0x0800
#define DB_THROUGH      0x1000
#define DB_FENCE        0x2000


HPS   hps;
RECTL rcl;
SWP   Swp;

WM_PAINT:
 hps=WinGetPS(hwnd);
 // Get the size of the part to be raised
 WinQueryWindowPos (WinWindowFromID (hwnd, PROMPT), &Swp);
 rcl.xLeft   = Swp.x-1;
 rcl.yBottom = Swp.y-1;
 rcl.xRight  = Swp.x + Swp.cx + 1;
 rcl.yTop    = Swp.y + Swp.cy + 1;
 WinDrawBorder (hps, &rcl, 1L, 1L, CLR_WHITE, CLR_DARKGRAY, DB_RAISED);
 



Bye, Johan.

--- The-Box Point 0.15+ PC
* Origin: johan{at}bitbike.com - CIS: 100120,2502 (2:283/512.16)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 283/512 280/801 270/101 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™.