I am planning a scene/map editor, whose user-interface would looks like milkshape or 3ds max, having a big toolbar on the right-side of the window.
But then there's a question, after I put the toolbar on the right or left side, would windows re-calculate the client area? (what the GetClientRect(HWND) function returns! ) I look into the IRR's code and notice that IRR use GetClientRect to set the viewport's area to draw in.
About adding a toolbar docking to the CView
-
- Posts: 230
- Joined: Mon Oct 10, 2005 2:24 am
In Borland C++ builder and Visual C++ 2005 express if a panel or toolbar is aligned to the left/right the client area is from the edge of the toolbar to the other side.
I think?
try a box 30 wide at position (clientwidth - 10) and if it shows over a box 30 wide then you know where the client width is...
I think?
try a box 30 wide at position (clientwidth - 10) and if it shows over a box 30 wide then you know where the client width is...
pushpork