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