RE: [GD-Windows] Unicode editboxes
Brought to you by:
vexxed72
From: Wayne C. <wc...@re...> - 2002-11-08 09:54:03
|
> I read in the msdn that regular Editboxes support both ANSI and Unicode > text. Great news, but unfortunately, that was all I could find... If you write an application with Unicode defined, the window will be Unicode, if not the window will be ANSI. If you want to create a Unicode window whilst building without Unicode defined then that's where you find the SDK has been a bit 'sly' :) CreateWindowEx is actually a macro rather than a function call. In ANSI builds it expands to the function call CreateWindowExA, in Unicode builds it expands to CreateWindowExW. So you can bypass this by calling CreateWindowExW directly (only CreateWindowEx is documented, I've never found the others in the documentation). Anyway, for all normal purposes you shouldn't need to worry about it. In Unicode builds it 'just works' :) FWIW CreateWindow is also a macro that expands to CreateWindowEx, which is irritating if you happen to be implementing a class\interface that you want to include a 'CreateWindow' method (currently I've opted for 'OpenWindow' ;). You can find out if a window is Unicode or not by calling 'IsWindowUnicode( HWND hWnd )'. > How are unicode editboxes created and handled? Do they work in Win98? > Where > can I find more info about this? AFAIK win98 needs a Unicode library, but I don't know what it is or where you get it as I haven't been on or targeted win98 for a long time, sorry :( Wayne -Virus scanned and cleared ok |