Sign in to follow this  
johnnyBravo

c++ static window object, how to set font type, foreground and background colour?

Recommended Posts

johnnyBravo    100
Hi, I've got a static window object created with CreateWindow("static"... And I want to change the font type, font size, text colour and background colour. How would I do this?> Thanks

Share this post


Link to post
Share on other sites
johnnyBravo    100
Hi, I managed to change the font for the static object like so:

SendMessage(lblStart, WM_SETFONT, (WPARAM)font, TRUE);


But I also want to change it for edit and combobox objects. So far it just resizes amount of space to show the text, which gives me some cut of text from the top and bottom.


Any ideaS?

THanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this