Results 1 to 10 of 10

Thread: Cursor position

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    Cursor position

    How could i receive the client coordinates of the cursor in an edit
    box?
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    GetCursorPos?
    Bababooey
    Tatatoothy
    Mamamonkey

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    you can retrieve the caret rect with GetGUIThreadInfo:
    http://msdn.microsoft.com/library/de...ndows_4grz.asp

    btw getcursorpos retrieves the mouse cursor position.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    sorry caret rather :-/
    Bababooey
    Tatatoothy
    Mamamonkey

  5. #5

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    do i need anything extra to use the GUITHREADINFO struct?

    i'm using VC++5 and my prog is in MFC. it's not recognizing this
    struct as valid

    any help?
    Bababooey
    Tatatoothy
    Mamamonkey

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    eh dunno :s maybe you should install the PSDK?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    guh, i was afraid you were gonna say that
    Bababooey
    Tatatoothy
    Mamamonkey

  8. #8

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    what's wrong with GetCaretPos?
    Bababooey
    Tatatoothy
    Mamamonkey

  9. #9
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    dunno
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  10. #10

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    CWnd::GetCaretPos
    static CPoint PASCAL GetCaretPos( );

    Return Value

    CPoint object containing the coordinates of the caret's position.

    Remarks

    Retrieves the client coordinates of the caret's current position and returns them as a CPoint.

    The caret position is given in the client coordinates of the CWnd window.



    silly, it's exactly what i wanted
    Bababooey
    Tatatoothy
    Mamamonkey

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width