CFrame inherits from CRenderFrame which inherits from wxFrame which eventually inherits from wxWindow, so this cast is not required.
CFrame inherits from CRenderFrame which inherits from wxFrame which eventually inherits from wxWindow, so this cast is not required.