🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1884

Re: WinCreateWindow(...pCtlData,..) -> WM_CREATE problem

#1884
From: Michael Harris
Date: Fri, 13 Nov 1992 01:57
19 lines
1425 bytes
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)
Technical Details
Message-ID: <harris.721619879@garfield.catt.ncsu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harris
References: <721564770fred.fred@oneup.gwinnett.com> <721566380fred.fred@oneup.gwinnett.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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