Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Caret Position if a toolbar button is clicked
#1
My question is :
Is there a way to memorise the last caret position on a window, before clicking a toolbar's button?


More specifically the problem is as it follows :

I need to run a macro by clicking on a toolbar, that needs the caret position just before the macro initiation.

If the window is a notepad like client window you can get it through a SendMessage- EM_GETSEL statement. I try to find a solution in the case of a OE client window (Internet Explorer_Server class window).

I understand that you can by-pass this issue if - instead of using a toobar - you use a right click menu item.

Any advice is mostly welcome.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)