Client and nonclient areas

Hi,

I want to draw my own toolbar that contains a number of buttons. I have drawn
a bitmap with a gradient for the background and the buttons will be placed on this bitmap. My question is this: How can I make the ClientRectangle coordinates begin
below the bottom of this bitmap ? I want the point of the client rectangle,(0,0) to be below the toolbar bitmap. How do I take into account the dimensions of the toolbar bitmap so I can draw in the client area ? I hope this makes sense.

Thanks

FC.
Hi,

could you tell us what IDE are you using?
You cant'change the ClientRect directly, however you can use the InflateRect function to change the ClientRect temporarily.
https://msdn.microsoft.com/de-de/library/windows/desktop/dd144994(v=vs.85).aspx

Is there a reason why you don't use Windows toolbar with owner draw ?
Hi,

I'm using Visual Studio Community 2015.

And I didn't know you could draw a toolbar control that uses owner draw. I think this is something I'm going to look at because it sound like it's what I need.

Thx

FC.
Topic archived. No new replies allowed.