TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Steffen Offermann
from: Alessandro Tripiccione
date: 1995-05-29 09:24:52
subject: Q: Dialog as main window

Ciao Steffen,

Reference: msg del 22-May-95
Author   :Steffen Offermann
TO       :Jonathan de Boyne Pollard
about    :Q: Dialog as main window


 JdBP>>   WinDlgBox suitable for your needs ?

 SO> Apparently not. The dialog window does appear on the screen, but
 SO> if I omit the FCF_SHELLPOSITION frame flag, the window has no
 SO> title bar and no border (and thus no minmax and size buttons
 SO> either) at all, despite the fact that the appropriate flags are
 SO> set. Adding FCF_SHELLPOSITION to the frame flags yields a
 SO> window with all the controls needed but then the screen position
 SO> and dimensions are, of course, not as wanted.


Well, have you tried to create your dialog without the WS_VISIBILE style bit?
You could then call WinSetWindowPos to position and size your still-not-visible
dialog window, and then call WinShowWindow to make it visible.

Hope it helps.


 :) ----> Enjoy Yourself,
           Alessandro Tripiccione <-----CR

--- Terminate 1.50
* Origin: Win95 ->'95 is the year when it HAD to be delivered (2:332/617.28)
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: 332/617 418 403 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™.