Hello,
I want to make a (very basic) CEdit with custom colors and syntax parsing.
I can change the whole text & bkgnd colors using OnGetDlgCode,
WM_CTLCOLORDLG, WM_CTLCOLORSTATIC and WM_CTLCOLOREDIT but it's not enough,
because the whole text is drawn with the same colors.
So, I rewrote OnPaint to draw the text myself with DrawText. Fine.
BUT, when I just select some text in the edit control, the text is drawn
without any WM_PAINT message, (using the colors provided by
WM_CTLCOLORSTATIC).
What message is send to the edit window when some text is selected ? I have
try to catch the message with Spy++, but I don't understand why WM_PAINT is
not called.
Thank you for any help !
Lionel.
|