Click here to Skip to main content
16,006,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BSTR data type ... huh? Pin
Ryan Binns30-Apr-03 20:58
Ryan Binns30-Apr-03 20:58 
GeneralRe: BSTR data type ... huh? Pin
Nathan Ridley30-Apr-03 21:09
Nathan Ridley30-Apr-03 21:09 
GeneralQUESTION: Bug in code! Pin
Nathan Ridley1-May-03 13:23
Nathan Ridley1-May-03 13:23 
AnswerRe: BSTR data type ... huh? Pin
Renjith Ramachandran1-May-03 0:16
Renjith Ramachandran1-May-03 0:16 
AnswerRe: BSTR data type ... huh? Pin
Michael Dunn1-May-03 0:25
sitebuilderMichael Dunn1-May-03 0:25 
Generalany idea of DECLARE_OLECREATE_EX and DECLARE_OLECTLTYPE in OLE Controls Pin
safee ullah30-Apr-03 19:26
safee ullah30-Apr-03 19:26 
GeneralGet child window's handles(HWND) Pin
Chintan30-Apr-03 18:31
Chintan30-Apr-03 18:31 
GeneralRe: Get child window's handles(HWND) Pin
Martyn Pearson30-Apr-03 22:06
Martyn Pearson30-Apr-03 22:06 
You can use code similar to this. Basically, you go through each of the application document templates, to get each of the open documents. For each document (which could have multiple views), you go through each of the views, and then get the parent frame.

POSITION posTemplate = theApp.GetFirstDocTemplatePosition();
while (posTemplate)
{
    CDocTemplate * pTemplate = theApp.GetNextDocTemplate(posTemplate);

    POSITION posDocument = pTemplate->GetFirstDocPosition();
    while (posDocument)
    {
        CDocument * pDocument = pTemplate->GetNextDoc(posDocument);

        POSITION posView = pDocument->GetFirstViewPosition();
        if (posView)
        {
            CView * pView = (CSpecExView *)pSpecExDoc->GetNextView(posView);
            CFrameWnd * pChildFrame = pView->GetParentFrame();
        }
    }
}

Hope this helps!
GeneralOLE Pin
Gary Kirkham30-Apr-03 16:31
Gary Kirkham30-Apr-03 16:31 
GeneralRe: OLE Pin
safee ullah30-Apr-03 19:21
safee ullah30-Apr-03 19:21 
GeneralRe: OLE Pin
David Crow1-May-03 3:51
David Crow1-May-03 3:51 
GeneralRe: OLE Pin
Gary Kirkham1-May-03 4:20
Gary Kirkham1-May-03 4:20 
GeneralRe: OLE Pin
David Crow1-May-03 4:22
David Crow1-May-03 4:22 
GeneralRe: OLE Pin
Gary Kirkham1-May-03 5:00
Gary Kirkham1-May-03 5:00 
GeneralRe: OLE Pin
David Crow1-May-03 5:04
David Crow1-May-03 5:04 
GeneralRe: OLE Pin
Gary Kirkham2-May-03 16:16
Gary Kirkham2-May-03 16:16 
GeneralLooking for a programmer to take over an RPG project Pin
Josh Cronkhite30-Apr-03 13:25
Josh Cronkhite30-Apr-03 13:25 
GeneralRe: Looking for a programmer to take over an RPG project Pin
42696C6C2053657267696F20284E4F54212930-Apr-03 13:48
suss42696C6C2053657267696F20284E4F54212930-Apr-03 13:48 
GeneralRe: Looking for a programmer to take over an RPG project Pin
J. Dunlap30-Apr-03 13:56
J. Dunlap30-Apr-03 13:56 
GeneralRe: Looking for a programmer to take over an RPG project Pin
Ryan Binns30-Apr-03 20:39
Ryan Binns30-Apr-03 20:39 
GeneralRe: Looking for a programmer to take over an RPG project Pin
joshx1-May-03 17:11
joshx1-May-03 17:11 
GeneralProblem Registering MSVCRT.DLL Pin
ElizabethC30-Apr-03 11:39
ElizabethC30-Apr-03 11:39 
GeneralRe: Problem Registering MSVCRT.DLL Pin
Anonymous30-Apr-03 11:49
Anonymous30-Apr-03 11:49 
GeneralRe: Problem Registering MSVCRT.DLL Pin
ElizabethC30-Apr-03 12:29
ElizabethC30-Apr-03 12:29 
GeneralRe: Problem Registering MSVCRT.DLL Pin
Tim Smith30-Apr-03 14:44
Tim Smith30-Apr-03 14:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.