...

View Full Version : Resolved Edit Controls (WIN32 C++/ Not MFC)



flynch01
08-20-2009, 05:42 PM
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?

oracleguy
08-20-2009, 05:47 PM
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.



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?

flynch01
08-20-2009, 05:54 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum