c++ - How to set the text in a TextBox control from native code? -
is possible manipulate .net controls native code? particularly, i'd set text of textbox native code. want done way keep business logic separated user interface, precisely native code knows how appropriately format data (some bytes received within protocol).
i know window handle through handle property, once there, how call desired method?
is string handling option? should native code build message displayed on control?
the "native" way of setting text on textbox send textbox wm_settext message:
// handle initialized textbox::handle postmessage(handle, wm_settext, 0, _t("some text")); read on postmessage , sendmessage, too. depending on how allocate , build text, may need use sendmessage avoid deallocating prematurely.
Comments
Post a Comment