how to set a control to display unicode-string without making an unicode-build? - Programmer

This is a discussion on how to set a control to display unicode-string without making an unicode-build? - Programmer ; how to set a control to display unicode-string without making an unicode-build? thanks in advanced!...

+ Reply to Thread
Results 1 to 2 of 2

Thread: how to set a control to display unicode-string without making an unicode-build?

  1. how to set a control to display unicode-string without making an unicode-build?

    how to set a control to display unicode-string without making an unicode-build?
    thanks in advanced!

  2. Re: how to set a control to display unicode-string without makingan unicode-build?

    kevin wrote:

    > how to set a control to display unicode-string without making an unicode-build?
    > thanks in advanced!


    You can use Unicode versions of API functions even in an ANSI build by
    suffixing the function names with W. Use SendMessageW() etc to specify
    that you want to use the Unicode version, in this case e.g.
    SendMessageW(hwndCtl, WM_SETTEXT, 0, (LPARAM) L"Unicode text");

    --
    Olof Lagerkvist sm6xmk
    ICQ: 724451 @ssa.se
    Web: http://here.is/olof


+ Reply to Thread