• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

MFC/Visual Studio: Changing character encoding makes buttons unsightly

Hello,

I've changed the character encoding from Unicode to multibyte for a project, to accommodate the use of some code ( code from http://www.codeproject.com/docking/AutoResizingControls.asp ) that couldn't recast a string (that old problem).

This seems to have had the effect of making my forms buttons ugly. They don't have nice, rounded windows xp style edges, but are square in the style of windows 95. This is unacceptable to me.

Does anyone know how I can use this code without changing my character encoding, or change my character encoding without changing the appearance of my buttons?

Thanks a lot,
Sternocera
0
sternocera
Asked:
sternocera
1 Solution
 
jkrCommented:
>>Does anyone know how I can use this code without changing my character
>>encoding

Convert the strings on the fly. Where exactly do you have that "couldn't recast a string" problem? In most cases, you can simply

void func( LPSTR lpsz )
{
   USES_CONVERSION;
   ...
   LPWSTR x = A2W(lpsz);
   // Do something with x
   ...
}

0
 
sternoceraAuthor Commented:
Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now