title: MFC EditText unicode text changes to multibyte characters
body: <p>I am converting a legacy MFC program to support unicode. I can build and run the program now. However, when I input unicode text into an EditText control, this happens:</p>
  
  <p><a href="https://i.stack.imgur.com/jddm8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jddm8.png" alt="This is when I am inputting text."></a></p>
  
  <p>The above is when I am inputting text.</p>
  
  <p>The below is after the focus leaves the EditText.</p>
  
  <p><a href="https://i.stack.imgur.com/kHo3c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kHo3c.png" alt="After"></a></p>
  
  <p>Now, the second text is the multibyte conversion of the first text which I do in the code. What I don't understand is that in all the places I see, the program only uses <code>SetWindowText</code> function. And everywhere that is used, I've made sure that the text is converted from multibyte to unicode. However, this makes me think I missed something.</p>
  
  <p>Can anyone point me in the right direction? Perhaps a callback I should be looking at?</p>