The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: tathams on October 05, 2006, 11:57:18 AM

Title: Unicode Edit window
Post by: tathams on October 05, 2006, 11:57:18 AM
I have a normal program but wish to get some unicode text in one specific part of the program.

If I create a window handle using CreateWindowExW not CreateWindowExA does anyone know if I can then send a
SendMessageW(handle,WM_GETTEXT,xx,buffer_pointer) to get the data, once the user has tabbed away from it.

Thanks
Title: Re: Unicode Edit window
Post by: hutch-- on October 05, 2006, 12:19:31 PM
The general idea with unicode functions is to be consistent and not mix them with ANSI functions. This means pick the unicode API calls and check out the capacity of the messages you use to control the main window and the edit window in its client area. You know of course that you need winNT or win2000 and later to handle unicode properly but apart from that, its just pick the right functions and messages and it all works fine.