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

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!psinntp!panix!os2man
  3. From: os2man@panix.com (Larry Salomon Jr.)
  4. Subject: Re: Button Press..HELP!!!!
  5. Message-ID: <1992Jul22.020524.17316@panix.com>
  6. Date: Wed, 22 Jul 1992 02:05:24 GMT
  7. References: <seOXNpS00Vp9AAAUxL@andrew.cmu.edu> <1992Jul20.182305.21192@cs.umn.edu> <harris.711681425@garfield.catt.ncsu.edu>
  8. Organization: PANIX Public Access Unix, NYC
  9. Lines: 23
  10.  
  11. In <harris.711681425@garfield.catt.ncsu.edu> harris@garfield.catt.ncsu.edu (Michael Harris) writes:
  12.  
  13. >joiner@cs.umn.edu (Jay Joiner) writes:
  14.  
  15. >>  Of course, if you have two or more buttons, then you have
  16. >>to differentiate somehow.  One theory I had was to save the window handle
  17. >>for each button when you create them with WinCreateWindow, and then
  18. >>query to find out which caused the WM_COMMAND message to be sent using
  19. >>the parameters.  I don't have any 2.0 docs, so I don't know the correct way
  20. >>to handle these cases.
  21.  
  22. >The best way is to give each of your buttons a unique window id.  One of
  23. >the message parameters contains the window id of the button pushed. (I don't
  24. >have my docs handy so I am not sure which one it is at the moment.)
  25.  
  26. I just jumped into this conversation, so pardon me if this has been answered:
  27. Pushbuttons send a WM_COMMAND message with SHORT1FROMMP(mpParm1) equal to
  28. the id of the button that was pressed.
  29. -- 
  30. Cheers,
  31. Q
  32. -----------------------------------------------------------------------
  33. "If you still choose not to decide,   | "My other account is in the
  34.