| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Initializing Child window positions.... |
MD> I'm new to PM programming, so please slap me if this is a newbie MD> question. I'm trying to set all of the child windows MD> of my program to their MD> starting position before I make the main frame window visible. However, MD> it appears that while a window is not visible, the MD> size of its client area MD> is 0x0 (at least that's the value WinQueryWindowRec() is returning.) I'm I usually create child windows (with visible bit set) in the WM_CREATE message of my Client window (yes, this is before the client has a size), and then adjust the size for each WM_SIZE message the client receives (including the first one, right after creation). Since the child windows (regardless of visibility bit) will be invisible until the parent is made visible, all my windows appear at once when I call WinShowWindow() for the frame. --- Maximus/2 2.01* Origin: Sol 3/Toronto (905)858-8488 (1:259/414) 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: 259/414 400 99 98 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™.