Gabriel wrote :
How would I go about recreating a MaxGUI window within a window for third party 3D engines to use? In MaxGUI, I create a canvas parented to the main window and pass the HWND. In WXWidgets, I create a WXWindow, parented to the main frame, but the 3D window fills up the entire frame, not just the window. So either I'm getting back the wrong Hwnd or my window is being resized or something.
EDIT: I can confirm that the window is definitely being resized and moved when TV uses it. Now a MaxGUI Canvas does not get resized or moved, so clearly this is a GUI thing, not a TV thing. How can I get a WXWindow to behave like a canvas in respect of not moving and not being resized?
I would try this :
Add a wxPanel to your frame. This will resize to fit the client area of the frame.
Now, add your custom wxWindow to the panel, setting both position and size. It *should* stick to the dimensions you set.
Generally, the child of a frame is designed to automatically always fit the frame.
How would I go about recreating a MaxGUI window within a window for third party 3D engines to use? In MaxGUI, I create a canvas parented to the main window and pass the HWND. In WXWidgets, I create a WXWindow, parented to the main frame, but the 3D window fills up the entire frame, not just the window. So either I'm getting back the wrong Hwnd or my window is being resized or something.
EDIT: I can confirm that the window is definitely being resized and moved when TV uses it. Now a MaxGUI Canvas does not get resized or moved, so clearly this is a GUI thing, not a TV thing. How can I get a WXWindow to behave like a canvas in respect of not moving and not being resized?
I would try this :
Add a wxPanel to your frame. This will resize to fit the client area of the frame.
Now, add your custom wxWindow to the panel, setting both position and size. It *should* stick to the dimensions you set.
Generally, the child of a frame is designed to automatically always fit the frame.