The attached sample program has an incomplete dialog window. It's just to demonstrate a custom edit control.
The dialog has two edit controls. One is a custom control derived from CEdit, and the other is a regular CEdit control. The regular control shows up.
I tried adding OnDrawItem after modifying the style to be owner-drawn, and that method is call. It's still not displaying anything. That code is currently commented-out.
I'm not sure what is wrong. I suspect it might be the wrong rectangle when I create the window, although I've played with that to no avail.
I have looked at the CTRLTEST Microsoft example.
Note, the commented-out OnDrawItem method in the dialog class is to draw a button, and the code was copied from a codeproject project. I just wanted to see something displayed.
I have code in a zip file to upload. Hopefully a way to upload that code will appear after I submit this question.
Again, I had to use tags that don't apply to get three tags. The only one that applies is C++.