Type: Posts; User: zapper222
Search took 0.02 seconds.
In the LineLength link you provided, it says:
When LineLength is called for a multiple-line edit control, the return value is the length (in bytes) of the line specified by nLine.
nLineLength from this line equals 44.
nLineLength = m_RichEditVar.LineLength(1);
The return value from this line returns 40:
Thanks for your help on this guys!
I ran it thru the debugger and the line length came in at 44 and the CString Line2 was showing the text AND the weird characters. I noticed though that the...
Yes I am terminating the string and popping the buffer, I just didn't show it, my bad.
For what its worth, its a unicode project if maybe that has something to do with it.
Here is the code I am...
June 29th, 2015, 09:02 PM
That link is not working for me.
I have no difficulty in copying the line, its just that the extra "control" characters show up when I write the line to the second richedit box.
I copied one of...
June 26th, 2015, 05:42 PM
Visual Studio 2013 Community Edition on windows 7 Ultimate.
Dialog app with two rich edit boxes. The boxes are set to auto vertical scroll true, horizontal auto scroll false.
I am attempting to...
April 13th, 2015, 09:29 PM
I have a dialog box with several edit control boxes and I want to identify the edit control when I click the left mouse button on it.
Any button action (up or down) doesn;t register when the mouse...
October 17th, 2014, 02:29 PM
I hope you are using a good AV because there are some trojans out there that use that technique on launch.
The designers think it would be too suspicious if nothing happened on attempted start so...
July 18th, 2014, 03:26 PM
Yep that's the ticket, thanks Arjay.
July 17th, 2014, 02:35 PM
I have been playing around with property sheets/property pages and have been successful in getting them to work in a secondary dialog by calling the property sheet using DoModal().
I cannot figure...
March 17th, 2014, 08:09 AM
Probably should be using GetCheck() not GetState()
February 5th, 2013, 08:09 AM
Set up a timer (SetTimer)...it will read the port every so many milliseconds and you can update using that data.
Trying to write color text to an rtf file.
Anyone know of any code samples around that show how to do this.
March 2nd, 2012, 02:09 PM
It almost sounds like you would be better off using TABS rather than radio buttons to select your views.
January 25th, 2012, 01:34 PM
November 14th, 2011, 09:14 AM
If you are using MFC read up on CFileDialog.
If not MFC check out GetSaveFileName and GetOpenFileName.
November 11th, 2011, 11:01 AM
I picture Harry shaking his head wondering *** happened to his thread.
As far as the rest goes.....I have to give the edge to Egawtry.
October 28th, 2011, 09:58 AM
October 5th, 2011, 09:16 PM
I had this same issue only with a RichEdit control.
You could try making a control variable to the edit box and use ::ReplaceSel with the second parameter as 0.
October 4th, 2011, 09:17 PM
I have been doing a lot of reading on property sheets and property pages and have successfully generated modal and modeless dialogs using the information I found.
I am trying to make an SDI...
August 16th, 2011, 10:23 PM
Ok so here is a shot at writing the LVITEM to the target process memory with a lot of help from a blog by Chris Taylor.
const DWORD dwBufSize = 1024;
August 14th, 2011, 04:19 PM
Sounds like I am SOL!
Do you have any idea how to set the item state using what you suggest ?
August 14th, 2011, 11:04 AM
So, barring the local variable, you are saying I have to write the LVITEM to the target process memory, then use SendMessage then read the results from the target process? Is this the only way it can...
August 13th, 2011, 03:55 PM
I am trying to select an entry on a list control in another app. to make it look like I just left clicked on that particular list entry.
I am trying this code but it doesn't work, no errors but...
April 21st, 2011, 02:22 PM
Treat it as a string and it is fairly easy to do.
If you have to do it mathematically take note of the addition required to get to each iteration.
From 1 to 12 you add 11
From 12 to 123 you add...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!