05-12-2006, 09:16 AM
Something like this:
I don't think you need EM_FINDTEXT if you use regular expressions. I don't think you should convert the sample as it is.
CHARFORMAT2W* sm_in_wordpad=+share(worpad_edit_control_handle)
CHARFORMAT2W* sm_in_qm=+share
sm_in_qm.some_member=some_value
;...
SendMessage worpad_edit_control_handle EM_SETCHARFORMAT SCF_SELECTION sm_in_wordpad)
I don't think you need EM_FINDTEXT if you use regular expressions. I don't think you should convert the sample as it is.