home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4917 < prev    next >
Encoding:
Text File  |  1992-09-12  |  2.1 KB  |  45 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!The-Village!waterbed
  3. From: Larry Margolis <margoli@watson.ibm.com>
  4. Subject: Re: Icons in the title bar (a la EPM in ring enabled mode)
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <1992Sep12.232540.29616@watson.ibm.com>
  7. Date: Sat, 12 Sep 1992 23:25:40 GMT
  8. Distribution: comp.os.os2.programmer
  9. Reply-To: margoli@watson.IBM.com
  10. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  11. Nntp-Posting-Host: netslip63.watson.ibm.com
  12. Organization: The Village Waterbed
  13. Lines: 30
  14.  
  15. In  <1992Sep10.211453.26198@ans.net>  db3l@ans.net (David Bolen) writes:
  16. > In article <1992Sep10.192335.36146@watson.ibm.com> Larry Margolis <margoli@watso
  17. >
  18. > >   Process the WM_FORMATFRAME message by calling the frame's default
  19. > >   windowproc, and you'll get back an array of SWP structures equivalent
  20. > >   to the value you returned for WM_QUERYFRAMECTLCOUNT.  The last n are
  21. > >   for the ones you added, and are there for formatting the controls you
  22. > >   want to add.
  23. >
  24. > I almost posted something close to this until I realized that I didn't know
  25. > if the last n SWP structures were definitely for me.  Just out of curiosity,
  26. > what happens in the case where the frame window is already subclassed by
  27. > some other set of special controls (say you're using a library that provides
  28. > a frame with other new controls)?  Are your own SWP structures still last,
  29. > or is there a way to definitely find those that were allocated for your use
  30. > (check for 0 HWNDs maybe)?
  31.  
  32. The documentation says:
  33.    Applications that subclass frame controls may find that the frame
  34.    is already subclassed; the number of frame controls is variable.
  35.  
  36.    The WM_FORMATFRAME and WM_QUERYFRAMECTLCOUNT messages must always
  37.    be subclassed by calling the previous window procedure and
  38.    modifying its result.
  39.  
  40. This implies to me that if you get back a value of f from the
  41. WM_QUERYFRAMECTLCOUNT and return f+n, then the last n of the first
  42. f+n entries will be yours, no matter where in the chain you are.
  43.  
  44. Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
  45.