Click here to Skip to main content
16,009,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fatal error C1010: unexpected end of file while looking for precompiled header directive Pin
PJ Arends21-Aug-03 9:48
professionalPJ Arends21-Aug-03 9:48 
GeneralRe: fatal error C1010: unexpected end of file while looking for precompiled header directive Pin
Cambalindo21-Aug-03 9:51
Cambalindo21-Aug-03 9:51 
GeneralRe: fatal error C1010: unexpected end of file while looking for precompiled header directive Pin
questaware21-Aug-03 19:07
questaware21-Aug-03 19:07 
QuestionCan anyone help me with the Recent file list... Pin
Snyp21-Aug-03 9:39
Snyp21-Aug-03 9:39 
AnswerRe: Can anyone help me with the Recent file list... Pin
David Crow21-Aug-03 9:43
David Crow21-Aug-03 9:43 
GeneralPointer to Document from CMainframe Class Pin
Qbus21-Aug-03 9:30
Qbus21-Aug-03 9:30 
GeneralRe: Pointer to Document from CMainframe Class Pin
David Crow21-Aug-03 9:39
David Crow21-Aug-03 9:39 
GeneralRe: Pointer to Document from CMainframe Class Pin
John R. Shaw21-Aug-03 10:08
John R. Shaw21-Aug-03 10:08 
Use: AfxGetApp()->m_pDocManager

Here is an modified example that may help:

void MyApp::InvalidateAllViews()
{

    // Get position of first document template
    POSITION pos = m_pDocManager->GetFirstDocTemplatePosition();
    while( pos )
    {
        // Get pointer to document template
        CDocTemplate* pTemplate = m_pDocManager->GetNextDocTemplate(pos);
        // Get position of first document using template
        POSITION pos2 = pTemplate->GetFirstDocPosition();
        while( pos2 )
        {
            // Get pointer to document
            CMyDoc* pDoc = (CMysDoc*)(pTemplate->GetNextDoc(pos2));
            if( pDoc )
            {
                // Get position of first view
                POSITION pos3 = pDoc->GetFirstViewPosition();
                while( pos3 )
                {
                    // Get pointer of next view
                    CMyView* pView = (CVMyView*)(pDoc->GetNextView(pos3));
                    pView->Invalidate();
                }
            }
        }
    }
}


INTP
GeneralFrameGrabber in MDI Pin
mr200321-Aug-03 8:52
mr200321-Aug-03 8:52 
GeneralMixing bold text and normal text in a Rich Edit box Pin
Kayembi21-Aug-03 8:39
Kayembi21-Aug-03 8:39 
GeneralRe: Mixing bold text and normal text in a Rich Edit box Pin
David Crow21-Aug-03 8:59
David Crow21-Aug-03 8:59 
GeneralRe: Mixing bold text and normal text in a Rich Edit box Pin
Kayembi21-Aug-03 9:26
Kayembi21-Aug-03 9:26 
GeneralCStatusBar problem Pin
karkulka21-Aug-03 8:19
karkulka21-Aug-03 8:19 
GeneralRe: CStatusBar problem Pin
zeki yugnak21-Aug-03 13:01
zeki yugnak21-Aug-03 13:01 
GeneralRe: CStatusBar problem Pin
karkulka22-Aug-03 2:54
karkulka22-Aug-03 2:54 
Questionhow do I set lpstrFile of OPENFILENAME Pin
michael thomas21-Aug-03 8:00
michael thomas21-Aug-03 8:00 
AnswerRe: how do I set lpstrFile of OPENFILENAME Pin
David Crow21-Aug-03 8:21
David Crow21-Aug-03 8:21 
GeneralRe: how do I set lpstrFile of OPENFILENAME Pin
michael thomas21-Aug-03 9:49
michael thomas21-Aug-03 9:49 
AnswerRe: how do I set lpstrFile of OPENFILENAME Pin
PJ Arends21-Aug-03 10:00
professionalPJ Arends21-Aug-03 10:00 
GeneralAttaching an existing view to a new ChildWnd Pin
Qbus21-Aug-03 7:59
Qbus21-Aug-03 7:59 
QuestionHow to call another project's exe file Pin
mr200321-Aug-03 7:47
mr200321-Aug-03 7:47 
AnswerRe: How to call another project's exe file Pin
David Crow21-Aug-03 8:00
David Crow21-Aug-03 8:00 
GeneralRe: How to call another project's exe file Pin
mr200321-Aug-03 8:48
mr200321-Aug-03 8:48 
GeneralRe: How to call another project's exe file Pin
David Crow21-Aug-03 8:56
David Crow21-Aug-03 8:56 
AnswerRe: How to call another project's exe file Pin
Cambalindo21-Aug-03 8:26
Cambalindo21-Aug-03 8:26 

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.