GetTopLevelFrame in a dll
Posted on 2006-04-25
i have this problem:
when i call to GetTopLevelFrame from an other module then the one that contains my application's main frame it returns NULL
now, the main frame GetTopLevelFrame should return is located in a dll and used into an simple win app.
i have looked over GetTopLevelFrame implementation in mfc and i can see why it returns NULL (it looks for a CFrameWnd that has no parent and my main frame is empedded into an other window, so it has a parent and its parent is not a CFrameWnd).
does anyone know of a way to make this function work when the main window is located in a dll and this method is called from another module?