nanogui: Length of Window extra bytes.
Subject:
Re: Length of Window extra bytes.
From:
Chris Johns ####@####.####
Date:
18 Jan 2000 01:55:49 -0000
Message-Id: <3883C5B4.2B056196@acm.org>
Greg Haerr wrote:
>
> : To make sure I understand this I will outline what I will do :
> :
> : In `class WindowClass' I add sizeof (class Window*) to
> : the extra bytes supplied by the user. The user of
> : `class Window' must use a window class created by
> : the WindowClass class.
> :
> : When creating a window fill in a CREATESTRUCT and pass in
> : the first parameter of the CreateWindowEx function.
> :
> : Filter the WM_CREATE and take the object pointer from
> : the CREATESTRUCT and set in the extra bytes.
> :
> : Use the extra bytes to get the object pointer.
> :
> : This makes the only change I need the macro I posted earlier plus the
> : code to set a long word.
>
> You only need the code to set a long word. Your
> earlier macro gets the length of extra bytes, it's not needed.
>
Yes you are correct. Sorry about that.
I have also noticed that the header files are not protected against C++.
Should I add the:
extern "C"
{
};
etc to the header files ?
--
Chris Johns, ####@####.####