[comp.windows.ms] Window Styles with SDK 3.0

dsampson@x102a.harris-atd.com (sampson david 58163) (10/08/90)

I was fooling around with the SDK Generic sample program, creating
various windows for display in the main window client area.  There was
one type of window that I was unable to create and I'm wondering if I
just didn't use the right type or style bits.

I wanted to create a window similar to the Worksheet window in
Micrografx Charisma.  This window is bound to the parent main window
borders (that is, it can't be moved outside the boundry of the parent
window).  It also has a dialog frame and a system menu.  Here's the
main difference between that window and a plain popup or child window:
When you give it a caption, the caption bar is colored along with the
parent's caption bar indicating that the popup or child window is
active.

If I create a popup window as shown in the Petzold book, the window's
caption bar will be highlighted, but the parent window's isn't.  Also,
the popup window isn't confined to the parent's client area.  If I
create a Child window ala Petzold, the caption bar is never colored
in, but the window is bound to the parent window's client area.

The type of window I was trying to fool with is similar to the MDI
windows example in the SDK, except that I'm not trying to do that
particular style (icons, etc) and I didn't want the multi document
capability.  I've seen 2.11 applications that have the style I'm
trying to duplicate, but obvously MDI didn't exist in that kit.

Any ideas on what I have to do to create the window style I'm after
will be appreciated.

Thanks in advance.

dfs

--

I I               n
------------------------

I I            n
------------------------

I I         n
------------------------

I I     n
------------------------


It takes alot of patience to 
train a turtle.
   /
I I n  
------------------------

David Sampson                                         Harris Corporation
dsampson@x102a.ess.harris.com                   Gov't Aerospace Systems Divison
uunet!x102a!dsampson                                  Melbourne, Florida

-------------------------------------------------------------------------------