Re: Edit windows created with CreatwWindowExA become Unicode windows when manifest active



"David Liebtag" <DavidLiebtag@xxxxxxxxxxxxx> wrote in message
news:eXSBY9vTGHA.5900@xxxxxxxxxxxxxxxxxxxxxxx
I have discovered that if I try to create a multibyte edit window with
CreateWindowExA on XP with a manifest active, then IsWindowUnicode reports
that the window is a Unicode window. When pasting, the window correctly
receives multibyte data. However keyboard input sends Unicode data to the
window.

Is there a way to stop this from happening? For various complicated
reasons, my application requires multibyte operation in its edit windows.


I bugged MS about this repeatedly back in late 2002 and here is what they
said...

"The V6 edit control is unicode only, when building an non-unicode
variant of our application, you'll still get the unicode edit control
because of the inclusion of the manifest. ... While the documentation
doesn't seem to just come out and say it, if you want to use the new V6
common controls, your project should be built for unicode. We've got a
doc bug reported against this too".


Back then, my tests with IsWindowUnicode were returning FALSE, but it
wouldn't surprise me if they silently implemented a fix to 'correct' that.

--
Jeff Partch [VC++ MVP]



.



Relevant Pages

  • Re: Unicode Support
    ... > UNICODE form... ... > then Windows takes this to mean that you want your application window ... In fact, i do not want to upgrade RosAsm to Unicode, ... that would make use of Unicode Strings. ...
    (alt.lang.asm)
  • Re: Trouble subclassing listview to display unicode (chinese)
    ... String" but "ByVal As Long" and Call xyz). ... First, sub-class the window as usual, but use the SetWindowLongW ... function to allow Unicode support (and prevent Windows from converting ... DefWindowProcW hWnd, WM_SETTEXT, 0, StrPtr ...
    (microsoft.public.vb.winapi)
  • Re: Unicode Button in VB6
    ... control to display Unicode text, ... Any window on Windows is created from a window class. ... using a VB user control when subclassing VB standard controls. ...
    (microsoft.public.vb.winapi)
  • Re: Unicode Button in VB6
    ... I am allowed to Install the Microsoft ActiveX Control Pad with my ... control to display Unicode text, ... Any window on Windows is created from a window class. ... using a VB user control when subclassing VB standard controls. ...
    (microsoft.public.vb.winapi)
  • Edit windows created with CreatwWindowExA become Unicode windows when manifest active
    ... I have discovered that if I try to create a multibyte edit window with ... that the window is a Unicode window. ... receives multibyte data. ...
    (microsoft.public.win32.programmer.ui)