GetSize is returning exactly what you're requesting, to the best of my knowledge there is no way to tell it to return the size of the panel's area minus title bar, etc. I believe you may be running into issues since you should be looking at the "proportional size" of the panel (all panels native resolution assumes 640x480 and is resized by Source from there) and if you're not doing anything overly complex like custom painting, why not use a .res file to define your menu?> From: [EMAIL PROTECTED]> To: [email protected]> Date: Fri, 23 May 2008 21:10:45 +0200> Subject: [hlcoders] panel's clientarea> > How to get the size of panel's clientarea (the place where added child controls reside, except eg. the title bar in frame or tabs in property sheet)? GetSize() seems to return the size of whole panel with title bar, borders and stuff that my childcontrols, that I add, can't draw over, so I end up making them too big.> > _______________________________________________> To unsubscribe, edit your list preferences, or view the list archives, please visit:> http://list.valvesoftware.com/mailman/listinfo/hlcoders> _________________________________________________________________
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

