SetWindowText() style question
-
I have a static control area, it is about 4 lines height. if I only have one string to display, How can I make it horizontal and vertical center? Thanks
-
I have a static control area, it is about 4 lines height. if I only have one string to display, How can I make it horizontal and vertical center? Thanks
For the horizontal center, use SS_CENTER, there is not vertical center for CStatic ( or Cedit), you will have to do it manually.
I'd rather be phishing!
-
For the horizontal center, use SS_CENTER, there is not vertical center for CStatic ( or Cedit), you will have to do it manually.
I'd rather be phishing!
-
I have a static control area, it is about 4 lines height. if I only have one string to display, How can I make it horizontal and vertical center? Thanks
Exactly what Richard said above just subclass a static text box and you can use it over and over again. I have a standard code I use to do what you are doing and it also allows you to change the font, text color and background color as well which is all fairly trivial. Let me know if you want to see how to code it as I wont paste that amount of code if you don't need it.