Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Quick find not working when hosting code editor (or any other frame type) inside custom frame

$
0
0

Hi,

I am working on an extension that should help to organize and navigate through documents. You can check the extension here. (I am not trying to advertise it, I just want you to have ability to visualize what is the issue).

I am hosting every VS document that is opened inside my Tool Window by setting the IVsWindowFrameParentHwnd and  ParentFrame properties by calling:

Frame.SetProperty((int)__VSFPROPID2.VSFPROPID_ParentHwnd, value)
Frame.SetProperty((int)__VSFPROPID2.VSFPROPID_ParentFrame, value)


It mostly works OK (I had to handle various messages handling, focus, showing etc.), but one thing I can't solve - isfind feature. When frame is hosted inside my tool window, then Quick Find doesn't work, it is never showed (in "regular" documents it is showed inside the document editor as an adornment) andFind in Files is showed but it doesn't work. 

So, here goes my questions - is there are a way to tell VS that I want find to work on documents that are opened but which are children of my frame. It seems that VS, when document parent frame is set to something (in this case my tool window frame), will not call find on child frame, it will send find to current top active parent frame. I have tried to implementIVsFindTarget on my Tool Window, but there's not much I can do, the best I can achieve is to have find (Find in Files) work on the current active child frame, but as for theQuick Find, there's just nothing I can do, I really don't know where to start or how to control its behavior.

Thanks,



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>