home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6389 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.4 KB  |  31 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harris
  3. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  4. Subject: Re: WinCreateWindow(...pCtlData,..) -> WM_CREATE problem
  5. Message-ID: <harris.721619879@garfield.catt.ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: North Carolina State University
  8. References: <721564770fred.fred@oneup.gwinnett.com> <721566380fred.fred@oneup.gwinnett.com>
  9. Date: Fri, 13 Nov 1992 01:57:59 GMT
  10. Lines: 19
  11.  
  12. fred@oneup.gwinnett.com (Fred Christianson) writes:
  13.  
  14. >--
  15. >I've had this happen in 3 programs I've writen, and now a coworker
  16. >just found it happening in his program.
  17.  
  18. >I do a WinCreateWindow() and have the pCtlData parameter pointing
  19. >to an initialization structure.  When the window procedure gets
  20. >a WM_CREATE message, mp1 is supposed to have the pCtlData pointer, and
  21. >most of the time it does.  
  22.  
  23. Is this a 32-bit application?  If so, the first two bytes of the structure
  24. should be a USHORT which contains the length of the structure (in bytes).
  25. Be sure that this is set.
  26. ______________________________________________________________________________
  27.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  28.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  29. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  30.