Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts

    Edit Controls (WIN32 C++/ Not MFC)

    Edit

    Solved it, I'm an idiot. After changing all my stuff from things like TextOut to TextOutW, it didn't occur to me to use CreateWindowExW for my edit control instead of CreateWindow.

    After going to #winprog, #win32, and #winapi on various IRC networks. And waiting a few hours here. I finally found out from a completely unrelated channel...

    ----------------------------------------------

    Haven't posted in a while.

    I've got an edit control on my form, but it refuses to display unicode properly.

    <Cecen> Is it possible you're trying to insert a 4-byte character and the edit control isn't set to use unicode?
    This is the only answer I got on IRC, still idling now so I'll edit if I do get an answer anytime this week. Google isn't giving me any decent results other than MFC and Rich Edit controls.

    Typing into the form is fine, but the second I press space or enter, the text turns into ????.

    I'm guessing I need to handle some event where I should convert the text, but I have no idea. I can't find any information on MSDN or google.

    Edit:

    300 of my posts have gone since I was last here. Was there a cleanout or something?
    Last edited by flynch01; 08-20-2009 at 08:37 PM.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Let's start the most basic source of unicode weirdness, are you compiling your program with unicode support? I'm assuming you are since it sort of works but you should double check.

    Quote Originally Posted by flynch01 View Post
    300 of my posts have gone since I was last here. Was there a cleanout or something?
    No. They shouldn't be missing. Perhaps you remember the wrong post count you had?
    OracleGuy

  • #3
    Regular Coder
    Join Date
    Mar 2007
    Posts
    357
    Thanks
    46
    Thanked 22 Times in 21 Posts
    Could be, also yeah I am. Everything else works fine, I can display unicode on my actual client area just fine using the usual macros and wchar types. It's just the edit box that's killing me.


  •  

    Posting Permissions

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