C (2/207)

From:Bob Lanham
Date:01 Dec 99 at 01:43:37
Subject:Re: SuperBitMap Window

From: Bob Lanham <bobl@jaxproductions.com>

>
> Why do you want to use a SuperBitMapWindow?
>

I have a borderless backdrop window, and I just need to load in a
picture from disk to be the background for a game. It seemed like an
easy way to accomplish it.

> > In the following code, what have I done wrong?
>
> You free the datatype object, and expect the bitmap pointer to remain valid.
> But this is not how it works.
>

Thanks for the tip. By moving the DisposeDTObject() to after the
creation of the window, it's working now.

> Furthermore you use DoDTMethod() which is only for datatypes attached to a
> gadgetlist. Use DoMethod() instead. Though there should be no reason to call
> ProcLayout, when you don't want the bitmap remapped (but you probably do,
> don't you?)
>

I admit I don't totally understand DoDTMethod and ProcLayout. Docs for
Datatypes are hard to come by. But at least the program working now!
It's in hicolor, so I don't need to remap it.

Bob