I want to make a control where the bottom is nice and beveled as seen here:
http://img19.imageshack.us/f/finalzh.png/
alt text http://img19.imageshack.us/f/finalzh.png/
What style must I add to my control to achieve the same look as this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could create a static control with a WS_EX_CLIENTEDGE or WS_EX_WINDOWEDGE extended style, and place it in a containing child window, which clips the top and sides so you only see the bottom bevel.
Looking at the picture, you may even not need the child window – just position the static window at -4x-4 (use GetSystemMetrics SM_CX_BORDER to find out the real size of the window border) and size it 2x the border width larger that needed.