Article View: comp.os.ms-windows.programmer.misc
Article #2658how narrow can I make a window?
From: John Grant
Date: Sun, 10 Jan 1993 06:40
Date: Sun, 10 Jan 1993 06:40
38 lines
1961 bytes
1961 bytes
I want to create a child window showing a colourscale for a map: +---+ |zzz| aaa,...zzz are different colours +---+- 100 10,20,100 are the data values |yyy| +---+- 90 |xxx| +---+- 80 ... +---+- 10 |aaa| +---+ Ok, I created it with WS_CHILD | WS_THICKFRAME | WS_SYSMENU | WS_VISIBLE and I also specify the initial size (but allow it to be resized with WS_THICKFRAME). All is ok, and I can move it around etc. However, like all Windows windows (i.e. Write,Paintbrush,Notepad,etc), although the vertical size can be reduced to almost nothing, there is a minimum width of the window - just enough to show the system menu, part of the caption and min/max boxes (if any). I would like to be able to allow the user to make this window as narrow or as wide as required, i.e. narrow enough to exclude the colour labels or wide enough to see the labels in case the data file being viewed has data levels like 1234567. In other words - adjust width to suit your taste. Anyway, Windows won't let me make it narrows than some minimum width. Is there another combination of WS_ styles/window types that will let me make this window more narrow than the minimum? Is it stated anywhere in the docs what exactly this minimum is and why it exists? I can see that it shouldn't be smaller than the width of the system menu+ min box+max box (if present), but since I don't have a caption, minimize box or maximize box, it should allow me to make it as narrow as the system menu box. -- John A. Grant jagrant@emr1.emr.ca Airborne Geophysics Geological Survey of Canada, Ottawa
Technical Details
Message-ID:
<1993Jan10.064047.3230@emr1.emr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrantShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant From: jagrant@emr1.emr.ca (John Grant) Subject: how narrow can I make a window? Message-ID: <1993Jan10.064047.3230@emr1.emr.ca> Organization: Energy, Mines, and Resources, Ottawa Date: Sun, 10 Jan 1993 06:40:47 GMT Lines: 38