How to get line index after clicked editor control?

This is a discussion on How to get line index after clicked editor control? within the Windows Programming forums, part of the Platform Specific Boards category; in multiline editor control,i wanna know which line i clicked, how should i do? ONLY sdk,pls....

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    1

    How to get line index after clicked editor control?

    in multiline editor control,i wanna know which line i clicked,
    how should i do? ONLY sdk,pls.

  2. #2
    jasondoucette.com JasonD's Avatar
    Join Date
    Mar 2003
    Posts
    278
    Check out this MSDN page on Edit Controls. It shows a bunch of messages you can send to the control to retrieve infromation about it. I think you may be interested in EM_CHARFROMPOS Message, which gets information about the character closest to a specified point in the client area of an edit control.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 04:48 PM
  2. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 06:58 AM
  3. Imposing Line Numbers automatically in the C code
    By cavestine in forum C Programming
    Replies: 14
    Last Post: 10-15-2007, 12:41 AM
  4. Trouble replacing line of file
    By Rpog in forum C Programming
    Replies: 4
    Last Post: 04-19-2004, 10:22 AM

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