Heriberto Delgado Vasquez wrote:
> I'm trying to access the "displayAddr" field of a WindowType inside a
> form, but every time I do it, CodeWarrior tells me "displayAddr" was
> not found in WindowType.
>
> Does someone have an idea of what I'm doing wrong? (Of course, I've
> #included "window.h" on my project.)
First, see <WindowNew.h> which is the real header for WindowType. You
shouldn't need to include it or <Window.h> yourself if it is set up
already by CodeWarrior's precompiled header feature.
Second, note these comments in <WindowNew.h> --
typedef struct WinTypeStruct {
Word displayWidthV20; // use WinGetDisplayExtent instead
Word displayHeightV20; // use WinGetDisplayExtent instead
VoidPtr displayAddrV20; // use the drawing functions instead
/* ... */
} WindowType;
Red flag! Red flag!
-slj-