Hello. I started using the extra window memory to store some window-related values, instead of using static/globals. The problem is, how to initialize the extra memory values on the window creation? I know the following:
The question is, how to use this lpCreateParams value? Must be used two ways, depending on the O.S. version?
Thanks
------------------
[This message has been edited by Aldo Cavini (edited September 10, 2001).]
- The number of required extra bytes must be declared on the window class registration
- On the window creation I must pass a pointer to the init values (lpParam)
- On the %WM_CREATE message I must assign the lParam value to a CREATESTRUCT pointer
- I must use the lpCreateParams item of CREATESTRUCT as a pointer to the init values. But...
Windows NT: This member is the address of a SHORT (16_bit) value that specifies the size, in bytes, of the window creation data. The value is immediately followed by the creation data.
Thanks
------------------
[This message has been edited by Aldo Cavini (edited September 10, 2001).]
Comment