c++ - How to insert text into my Rich Edit Control in VS2010? -
i've gone question: how insert text rich edit control in win32 while preserving previous formatting
and tried did, got met error sendmessage didn't take same number of parameters.
and after looking @ this: https://msdn.microsoft.com/en-us/library/t64sseb3(v=vs.100).aspx, figured not [sendmessage]s created equal - sendmessage in vs2010 doesn't take hwnd parameter.
so... i'm stuck... please >_<
edit: did research... i'm afraid looking in wrong places or not know how to. i've been @ since yesterday...
so, learned today how different. special iinspectable.
scope.
the sendmessage using mfc version used 3 parameters.
sendmessage(message, wparam, lparam);
but needed 1 4 parameters - winapi version.
..beat..
so i'll able use winapi one, had prepend function call scope resolution operator (::). see below:
::sendmessage(rchwnd, em_replacesel, 0, (lparam)stringtoappend);
after that, happily able append text rich edit control (yey!). so... hope question out there.
peace... out ^^v
Comments
Post a Comment