About adding a toolbar docking to the CView

Discussion about everything. New games, 3d math, development tips...
Post Reply
michael520
Posts: 230
Joined: Mon Oct 10, 2005 2:24 am

About adding a toolbar docking to the CView

Post by michael520 »

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.
JPulham
Posts: 320
Joined: Sat Nov 19, 2005 12:06 pm

Post by JPulham »

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...
pushpork
Post Reply