mfc >> CEditView insertion at specific point

by Joe Estock » Sat, 22 Nov 2003 09:23:28 GMT

How would I insert a string into an edit control at a specific location (the
current location of the caret)?




mfc >> CEditView insertion at specific point

by Joe Estock » Sat, 22 Nov 2003 09:53:02 GMT





(the

Nevermind. I just realized how simplistic this was (as well as how
un-intelligent this question was). I simply had a "blonde moment". ;)





mfc >> CEditView insertion at specific point

by Les » Mon, 24 Nov 2003 17:50:19 GMT







Welcome to my world :-)
Fortunately being a newbie to this group I've tried to hold off posting my
own "blonde moment" questions and merely scanned the posts and recommended
web sources until the light dawned!

Les




CEditView insertion at specific point

by Joe Estock » Tue, 25 Nov 2003 04:00:28 GMT








location

Yes, but lack of sleep causes great desperation and great confusion.
Sometimes the most obvious (and most simple) solutions are the hardest to
think of. Ahh, all part of the wonders of being a computer programmer :)




Similar Threads

1. CEdit insertion point - VC MFC

2. Non-locale-specific floating point numbers

I want to write some C# that converts between floating-point numbers and 
strings in a non-locale-specific way.  That is, I want decimal points always 
to be ".", etc.  The simple overloads of Double.ToString() and 
Double.Parse() change their behavior depending on locale.  I'm considering 
creating a static en-us locale and passing it to the overloads of Parse and 
ToString that take a locale, but is there a better way? 


3. writing to a specific point in an array file - CSharp/C#

4. breaking at the exact point a variable is assigned a specific value

how do I break at the exact point a variable is assigned a specific
value? 

thanks

5. Efficiently reading a string from a specific point in a file

6. Checking if iterator points to a specific element

Hi

I'm traversing a std::list backwards with a reverse_iterator, and need 
to check for the case when the iterator points to the first element of 
the list.

My code now looks something like the code posted below. This usually 
works a few times, but then gives me a segmentation fault, apparently at 
the line "if (pos == --(the_list.rend()))". Shouldn't that always be 
valid, as long as there is always at least one element in the list at 
the beginning of the loop? Is there a better way to check if the 
iterator  points to the first list element?

list<MyClass*>::reverse_iterator i;
for (pos = the_list.rbgin(); pos != the_list.rend(); /**/ )
{
   if (pos == --(the_list.rend()))   /* Is this not always valid? */
   {
     // Do something with *pos
     the_list.clear();
     pos = the_list.rend();
   }
   else
   {
     // Do something else with *pos
     ++pos;
     the_list.erase( pos.base(), the_list.end() );
     pos = the_list.rbegin();
   }
}

7. Disable editing of one specific cell in one specific row in dataGr - CSharp/C#

8. How to run specific thread on specific CPU

Hello,

 I'd like to know about how to run specific thread on specific CPU.
 I know I can use ProcessThread.ProcessorAffinity.

 But I can't understand that how I can map my Thread object to
ProcessThread-Class.

---
ThreadStart ts = new ThreadStart(myThread);
Thread th = new Thread(ts);
th.Start();
---
 In this case, how I can map th to ProcessThread.

 Could you provide me sample code?

//Best Regards,
//to.iijima