home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3682 < prev    next >
Encoding:
Text File  |  1992-07-20  |  1.7 KB  |  37 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!darwin.sura.net!mips!mips!decwrl!csus.edu!netcomsv!mork!msmith
  3. From: msmith@netcom.com (Martin P. Smith)
  4. Subject: Re: Button Press..HELP!!!!
  5. Message-ID: <hjdmfk+.msmith@netcom.com>
  6. Date: Tue, 21 Jul 92 07:34:52 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <seOXNpS00Vp9AAAUxL@andrew.cmu.edu> <1992Jul20.182305.21192@cs.umn.edu> <harris.711681425@garfield.catt.ncsu.edu>
  9. Lines: 26
  10.  
  11. In article <harris.711681425@garfield.catt.ncsu.edu> harris@garfield.catt.ncsu.edu (Michael Harris) writes:
  12. >joiner@cs.umn.edu (Jay Joiner) writes:
  13. >
  14. >>  Of course, if you have two or more buttons, then you have
  15. >>to differentiate somehow.  One theory I had was to save the window handle
  16. >>for each button when you create them with WinCreateWindow, and then
  17. >>query to find out which caused the WM_COMMAND message to be sent using
  18. >>the parameters.  I don't have any 2.0 docs, so I don't know the correct way
  19. >>to handle these cases.
  20. >
  21. >The best way is to give each of your buttons a unique window id.  One of
  22. >the message parameters contains the window id of the button pushed. (I don't
  23. >have my docs handy so I am not sure which one it is at the moment.)
  24. >______________________________________________________________________________
  25. >     Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  26. > System Administrator, Computer & Technologies Theme Program, NC State Univ.
  27. >(My opinions are my own and do not represent those of NCSU or IBM Corporation)
  28.  
  29.  
  30. Are the structures _COMMANDMSG and COMMANDMSG different beasts??? _COMMANDMSG
  31. exists from lines 931 thru 938 in pmwin.h   .
  32.  
  33.  
  34. Martin Smith
  35. msmith@netcom.com
  36.  
  37.