Insertion Point

This is a discussion on Insertion Point within the Windows Programming forums, part of the Platform Specific Boards category; I call GetDlgItemText to get the text from an Edit box... but what do I call to retrieve the cursor ...

  1. #1
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361

    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?

    Say...
    "Hello this is my edit box"
    ____________ ^cursor

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    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
    Posts
    1,361
    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, 12: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 Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21