Message board for the users of flat assembler.
> Windows > keystrokes in richedit control
procyon 07 Sep 2007, 21:58
I have a window with a richedit control. I can load a file into the control with EM_STREAMIN and find required text with EM_FINDTEXTEX. My problem is that I want the program to be able to automatically modify parts of the loaded file, but cannot figure how to send keystrokes to the control. I have tried using:
invoke SendMessage, [ReCtlHnd], WM_NOTIFY, ReCtl, mylParam
and filling the NMHDR and MSGFILTER with the relevant info, but it does not generate a WM_NOTIFY message. i.e. I have an int3 in the WM_NOTIFY section of my WndProc and the above SendMessage does not go there.
How can I simulate keystrokes to a richedit control?
|07 Sep 2007, 21:58||
farrier 08 Sep 2007, 14:16
You can use,
Use it once to send a key down event, and then again to send a key up event. You can also use this to send ALT-key and CTRL-key combinations by sending the ALT key down event, then the key down event, then the key up event, and finally the ALT key up event.
Some Assembly Required
It's a good day to code!
U.S.Constitution; Bill of Rights; Amendment 1:
... the right of the people peaceably to assemble, ...
The code is dark, and full of errors!
|08 Sep 2007, 14:16||
procyon 09 Sep 2007, 12:05
Yes, it did indeed help
Looks like I was trying to make things too complicated, lol
|09 Sep 2007, 12:05||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.