Thread: Insertion Point

  1. #1
    I lurk
    Join Date
    Aug 2002

    Insertion Point

    I call GetDlgItemText to get the text from an Edit box... but what do I call to retrieve the cursor insertion point within that text?

    "Hello this is my edit box"
    ____________ ^cursor

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    what do you mean? the "carret" position? a quick search of msdn with that as your keyword will help

  3. #3
    I lurk
    Join Date
    Aug 2002
    Ahhh I got it, petzolds book had a nice example. It's "caret" by the way.

    Another question; I have a picture control with an icon loaded into it, I want to load a different icon into in when some certain condition is met... how would I go about doing this?

    I searched on MSDN for picture control, image control, icon control and everything in between, all it came up with was VB examples using LoadIcon(). I assume this is the function I have to use to do what I described above but i'm not sure how...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. For the numerical recipes in C types!
    By Smattacus in forum C Programming
    Replies: 5
    Last Post: 10-28-2008, 07:57 PM
  2. Classes & Collections
    By Max_Payne in forum C++ Programming
    Replies: 7
    Last Post: 12-11-2007, 01:06 PM
  3. Why not use an = Operator instead of a Copy Constructor?
    By thetinman in forum C++ Programming
    Replies: 48
    Last Post: 10-15-2007, 03:58 PM
  4. Do you know...
    By davejigsaw in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 10:33 AM
  5. Binary Search Trees Part III
    By Prelude in forum A Brief History of
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM