nanogui: Length of Window extra bytes.
Subject:
Re: Length of Window extra bytes.
From:
Chris Johns ####@####.####
Date:
17 Jan 2000 21:30:45 -0000
Message-Id: <38838796.FD360657@acm.org>
Greg Haerr wrote:
>
> : I would like to use the extra data in the window structure and
> : specifically the end of the extra bytes. For this I need the length of
> : the extra bytes. Can I get it from a function or can I add a macro ?
> :
> : eg:
> :
> : #define GetExtraBytesLen(hwnd) ((int)(hwnd)->nextrabytes)
>
> Chris - The doc'd API way to do this is thru GetClassInfo, but
> that's not implemented yet.
I see meantion of the API specification, how-ever I do not see where I
can download a copy. Is a copy online ?
> You can use your macro, but,
> remember that the extra bytes are always allocated at window
> create time, so it doesn't really matter where in the extra bytes
> you store your data, since it's a fixed size.
>
I suspect I cannot use the extra bytes for storing the object pointer as
a SendMessage occurs and the object pointer is not loaded into the
window structure when this occurs.
I added the "LPVOID lpParam" to the `struct hwnd' and set it. I also
added a macro to access it.
> :
> : ps: I have implemented support for the OS's number of fd's. You can also
> : select on read, write and except.
>
> Send your changes if you want them integrated ;-)
>
I intend to, how-ever I suspect you would like them tested :)
--
Chris Johns, ####@####.####