"Anthony Randazzo" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to display a window and remove it later using FtrSet/FtrGet
> to store the pointer.
>
> I can't see what's wrong with this.
>
> /** Code Snippet *//
>
> RectangleType lst;
>
> WinDrawRectangleFrame ( simpleFrame, &lst );
>
> if (FtrSet(myCreator,0x115c,(DWord) &lst) == 0)
> {
>
> }
>
>
> //Later in my code I want to remove the Rectangle from the screen
> if (FtrGet(myCreator,0x115c,(DWord *)&lst) == 0)
> {
> WinEraseRectangleFrame(simpleFrame, &lst);
> }
>
Hi Anthony,
I think that your problems comes from the call to FtrGet.
While the last parameter for FtrSet is a UInt32, for FtrGet the last
parameter is a UInt32* (pointer).
>From this I can speculate that you have to use this snippet of code in your
"Later section":
// Later in my code I want to remove the Rectangle from the screen
{
RectangleType *l_pstRectangle;
if (FtrGet(myCreator,0x115c, &l_pstRectangle) == 0) {
WinEraseRectangleFrame(simpleFrame, *l_pstRectangle);
}
}
Best regards
Pietro F. Maggi
--
The pawn is the most important piece on the chessboard...
up to the pawn.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/