views:

202

answers:

1

Hello,

I have .NET WPF application, that sits in background, and responds to user selecting text for example in Microsoft Word. After user selects text I need to draw window next to selected text.

My question is: How it is possible to get selected text coordinates in currently active application?

As I understand it has to do with Interop services and Windows messages

Is there an easy way to find solution to this problem?

A: 

Basicly I put following code into ListBox resources and got my problem solved

<ListBox.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#FFF3E1A7" />
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#FFF3E1A7" />

Daniil Harik
I don't understand how this is related to your question at all?
Elmo Gallen