CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    23

    √ symbol as a CButton's caption

    Hi,

    How do i use the √(Square root) symbol as a CButton's caption.


    I have tried pasting it, it shows up on the Dialog editor fine, but upon execution gets converted to 'v'.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: √ symbol as a CButton's caption

    I use a CBitmapButton for special symbols. There may be an easier way to do it, but that's pretty easy and it works.

  3. #3
    Join Date
    Feb 2005
    Posts
    2,160

    Re: √ symbol as a CButton's caption

    If you're using VS2008 with the MFC9 feature pack, then CMFCButton is a nice alternative to CBitmapButton:

    http://msdn.microsoft.com/en-us/library/bb983153.aspx

  4. #4
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: √ symbol as a CButton's caption

    Open the .RC file, and save it in Unicode format!
    That's it!
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured