home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4804 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: how narrow can I make a window?
  5. Message-ID: <1993Jan10.064047.3230@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. Date: Sun, 10 Jan 1993 06:40:47 GMT
  8. Lines: 38
  9.  
  10. I want to create a child window showing a colourscale for a map:
  11.     +---+
  12.     |zzz|            aaa,...zzz are different colours
  13.     +---+- 100        10,20,100 are the data values
  14.     |yyy|
  15.     +---+-  90
  16.     |xxx|
  17.     +---+-  80
  18.     ...
  19.     +---+-  10
  20.     |aaa|
  21.     +---+
  22. Ok, I created it with WS_CHILD | WS_THICKFRAME | WS_SYSMENU | WS_VISIBLE
  23. and I also specify the initial size (but allow it to be resized with
  24. WS_THICKFRAME).  All is ok, and I can move it around etc.  However, like
  25. all Windows windows (i.e. Write,Paintbrush,Notepad,etc), although the
  26. vertical size can be reduced to almost nothing, there is a minimum
  27. width of the window - just enough to show the system menu, part of the
  28. caption and min/max boxes (if any).
  29.  
  30. I would like to be able to allow the user to make this window as narrow
  31. or as wide as required, i.e. narrow enough to exclude the colour labels
  32. or wide enough to see the labels in case the data file being viewed
  33. has data levels like 1234567.  In other words - adjust width to suit
  34. your taste.
  35.  
  36. Anyway, Windows won't let me make it narrows than some minimum width.
  37. Is there another combination of WS_ styles/window types that will let me
  38. make this window more narrow than the minimum?  Is it stated anywhere
  39. in the docs what exactly this minimum is and why it exists?  I can see
  40. that it shouldn't be smaller than the width of the system menu+
  41. min box+max box (if present), but since I don't have a caption, minimize
  42. box or maximize box, it should allow me to make it as narrow as the
  43. system menu box.
  44. -- 
  45. John A. Grant                        jagrant@emr1.emr.ca
  46. Airborne Geophysics
  47. Geological Survey of Canada, Ottawa
  48.