Well, if you create a canvas, then free it, you should make sure the handle is null (or 0), then you can do something like:-
hCanvas = CreateCanvas(blah blah)
FreeGadget hCanvas
hCanvas = 0
If hCanvas <> 0
DoSomething() ;The canvas is alive and well
Else
MaybeDoSomethingElse() ;Bugger, its gone!
End If
That should do the trick! :)
Dabz
hCanvas = CreateCanvas(blah blah)
FreeGadget hCanvas
hCanvas = 0
If hCanvas <> 0
DoSomething() ;The canvas is alive and well
Else
MaybeDoSomethingElse() ;Bugger, its gone!
End If
That should do the trick! :)
Dabz