C# Accessing MFC Objects in another Application
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: C# Accessing MFC Objects in another Application

  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Question C# Accessing MFC Objects in another Application

    Program Version: Microsoft Visual Studio 2010 Professional

    Here is what I'm trying to do. I have an application which appears to be written in C++/MFC which I can not modify or change in any way. I can get the main windows hwnd from my program using the standard FindWindow and children with FindChildrenEx however I am unable to get to the data from the "afxFrameOrView90s". I have used UISpy and can locate the different views but I need to "Enumerate" through those views and read the data.

    so to simplify it. I have an application written in MFC and I need to get to the other views. Oh and btw the afxFrameOrView90s is a "Pane" according to UISpy.

    Anyone know the way to do this or what steps to take to get the desired outcome.
    I've been searching the internet and good groups for a while now and usually I can find something but maybe i'm just not searching for the right thing which sometimes happens and I stumble across it 3 months later LOL.
    thanks in advance

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,201

    Re: C# Accessing MFC Objects in another Application

    Forget about accessing it with MFC. Look into using Active Accessibility or UIAutomation to manipulate the UI in the external (MFC) application.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center