Ok, when I have an EDIT box, I know how to add to the END of the text in it(It's multi-line), but how do I add text to the spot of the caret's current position? Please post some code!
Ok, when I have an EDIT box, I know how to add to the END of the text in it(It's multi-line), but how do I add text to the spot of the caret's current position? Please post some code!
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
someone posted this code a while ago...do a search.
I have never done anything using a caret before, but i remember seing a function something similar to GetCaretPos(); so couldnt you just use this to get the posistion of the caret and then when you paste, or copy or whatever the text into the edit box, pass it at the location returned by GetCaretPos.
sorry i have no code for you, but like i said i have not done this.
arrh, i got nothing good to say.
http://www.praxis1.vic.edu.au/home/dcola/
KEN, I couldn't find any matches for a search. Do you know what the URL(or Forum page) for the one posted awhile back?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
I dunno...I'll look a page~2/3 back. I think it was someone's question about setting text to an editbox without SetDlgItemText...I'll search.
I didn't find it, but try this
SendMessage(hwndEdit, WM_SETTEXT /*dunno if this is right*/, (WPARAM)5, (LPARAM)5);
then replace the 5,5 with numbers you want...