Custom Painting using the Open API?

I want to be able to show the number of lines in a method, similar to the way CodeRush is doing it, is this possible?

1 comment
Comment actions Permalink

Hello Ayende,

with OpenAPI you can get the VSTextControl of an open document. VSTextControl
basically corresponds to the code editor window.
From VSTextControl, you can access the Win32 handle of the editor window,
and from now on it's up to you to subclass it (e.g.
using standard NativeWindow technique). Unfortunately, OpenAPI doesn't provide
any help with custom painting in the editor window.


Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


I want to be able to show the number of lines in a method, similar to
the way CodeRush is doing it, is this possible?



0

Please sign in to leave a comment.