Closed GoogleCodeExporter closed 9 years ago
Wait.. this one is probably better:
http://msdn.microsoft.com/en-us/library/ms538475(VS.85).aspx
Original comment by seth.h...@gmail.com
on 20 Aug 2008 at 8:22
Ok, I've added rudimentary support to SVN for this. However, there are some
flaws,
and I can't figure out if they're in my code, or from Windows. Plus, it only
works on
certain windows.
I'm disabling it for now.... we'll have a look after 1.6.
Original comment by seth.h...@gmail.com
on 11 Sep 2008 at 5:34
Putting this as medium priority --I want to add an option to allow rudimentary
support for version 1.7, off by default.
Original comment by seth.h...@gmail.com
on 9 Feb 2009 at 6:11
Ok, and the summary is:
Call GetForegroundWindow() to get the window with the caret.
Call AttachThreadInput() to allow you to get more information about this window.
*Attaching a thread with Window capabilities is a BAD IDEA as it will steal focus.
Call the confusingly-named GetFocus() to get the child window with the focus (and
thus the caret)
Get the caret, get the child window's client area, add them, and you'll have your
caret's position (I'm thinking it's the top of the caret)
Call DetachThreadInput(), lest we get information from the wrong window.
The current solution creates and destroys a thread each time the window
appears. This
isn't so bad, but I'd rather have the thread "reset" somehow. Again, though,
it's a
minor point.
There is a config file option for people who prefer to drag the window to a
special
location and leave it there. Enabled by default, because I rather like this
feature
more than I thought I would.
Thanks, Carbon....
-Closed-
Original comment by seth.h...@gmail.com
on 27 Mar 2009 at 10:22
Original issue reported on code.google.com by
seth.h...@gmail.com
on 20 Aug 2008 at 8:04