locked
Get Code Metrics Results RRS feed

  • Question

  • Hello,

    I want to get the code metrics results window and access to the table which contains the results in order to save them in a file.

    I can access to the code metrics results window, but I don´t know how to access to the table that is inside of this window.

    With the following command I can active the code metrics results window:

    this.dte.Windows.Item("{9A7CEBBB-DC5C-4986-962DA46AA506"}).Activate();

    Now I want to pull the data stored in the table associated with the code metrics results:

    this.dte.ActiveWindow.?????

    Any suggestions?

    Thanks.

     

     

    Any suggestions.

    Thursday, February 10, 2011 11:07 AM

Answers

  • I don't know if that toolwindow exposes its inner programmable object. See:

    HOWTO: Get the programmable inner object of a toolwindow
    http://www.mztools.com/articles/2006/MZ2006015.aspx

    If not, your only chance would be to get the hwnd of that toolwindow and use the Win32 API to get its controls, etc.

     


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Friday, February 11, 2011 6:48 AM

All replies