home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1034 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.8 KB

  1. Path: sparky!uunet!stanford.edu!agate!rsoft!mindlink!a499
  2. From: Robert_Salesas@mindlink.bc.ca (Robert Salesas)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Combo box bug?
  5. Message-ID: <13790@mindlink.bc.ca>
  6. Date: 27 Jul 92 20:31:26 GMT
  7. Organization: MIND LINK! - British Columbia, Canada
  8. Distribution: world
  9. Lines: 38
  10.  
  11. > Mika Iisakkila writes:
  12. > Msg-ID: <IISAKKIL.92Jul27130855@lesti.hut.fi>
  13. > Posted: 27 Jul 92 13:08:55
  14. > Org.  : Helsinki University of Technology
  15. > I've noticed a peculiar behaviour in Win 3.1 combo boxes. I have an
  16. > application which has a dialog box as the main window, and it contains
  17. > a combo box control. If I click the combo box open and try to move the
  18. > main window, the drop-down part of the combo box won't move! It works
  19. > still fine, stays above the main window etc, but looks really weird.
  20. > The Windows applets seem to avoid this, because the combo boxes always
  21. > close when you click on the window caption. Have I done something
  22. > wrong or is this a Windows bug? Should I capture WM_NCLBUTTONDOWN and
  23. > close the combo box before allowing the window to move? Seems stupid.
  24. > I'm using Windows 3.1 and MSC 7.00.
  25. > --
  26. > Segmented Memory Helps Structure Software
  27.  
  28.  
  29.  
  30. This problem exists in both 3.0 and 3.1.  It has to do with the fact that the
  31. drop down list belongs to the desktop, not the window.  Anyway, to fix it just
  32. trap the wm_NCLButtonDown and the wm_ParentNotify (if you have child windows
  33. that cover parts of the parent all the time).
  34.  
  35. Rob
  36.  
  37. --
  38. \------------------------------------------------------------------------/
  39. \ Robert Salesas             | Internet: Robert_Salesas@mindlink.bc.ca   /
  40. \ Eschalon Development Inc.  | CIS:    76625,1320  Tel/Fax: 604-520-1543 /
  41. \------------------------------------------------------------------------/
  42.  
  43.