Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: equation editor and mathematical function evaluator Pin
Miguel Segarra14-Nov-02 21:48
Miguel Segarra14-Nov-02 21:48 
GeneralRe: equation editor and mathematical function evaluator Pin
Chris Richardson15-Nov-02 7:25
Chris Richardson15-Nov-02 7:25 
GeneralRe: equation editor and mathematical function evaluator Pin
Miguel Segarra17-Nov-02 22:04
Miguel Segarra17-Nov-02 22:04 
GeneralRe: equation editor and mathematical function evaluator Pin
Chris Richardson15-Nov-02 7:42
Chris Richardson15-Nov-02 7:42 
GeneralMDI Maximized windows Pin
Steve S12-Nov-02 21:57
Steve S12-Nov-02 21:57 
GeneralRe: MDI Maximized windows Pin
Eugene Pustovoyt12-Nov-02 23:49
Eugene Pustovoyt12-Nov-02 23:49 
GeneralRe: MDI Maximized windows Pin
Steve S13-Nov-02 3:25
Steve S13-Nov-02 3:25 
GeneralRe: MDI Maximized windows Pin
Neville Franks13-Nov-02 10:47
Neville Franks13-Nov-02 10:47 
Hi Steve,
This MDI behavior is a pain, and varies across Windows versions. The snippet below is what I do in ED (see sig) to try and handle this. Hope it helps.

    // On WinXP switching maximized windows does a horrible flash as it does
    // a MDIRestore then Maximize. You see the Frame of the Restore MDI Windows
    // before they get painted over. The following code turns off Redraw
    // then Redraws again after we've Activated the new Window. 13 Nov 2001
    // See also: <A HREF=".\ChildFrm.cpp#^CChildFrame::ActivateFrame">
CWnd* pMDIClient = NULL;
BOOL bMaximized;
pMF->MDIGetActive( &bMaximized );   // pMDIChild->IsZoomed() doesn't work here.
if ( bMaximized )
{       // Only needed if we are maximized.
    pMDIClient = pMDIChild->GetParent();
    // pMDIClient = pMF->GetMDIClient();   // rem: Same as pMDIChild->GetParent()
    pMDIClient->SetRedraw( FALSE );
}

pMF->MDIActivate( pMDIChild );  // This isn't strictly needed for NM_CLICK but doesn't seem to hurt.

         // Minimized windows can be hidden behind something (Output Window)
         // so Restore to normal size. This can happen when ED is started and their are minimzed windows.
    if ( bRestoreMinimized and pMDIChild->IsIconic() )    // added bRestoreMinimized. See CMDIClient::OnMDINext(). 27 Sep 2001
        pMDIChild->MDIRestore();

if ( bMaximized )
{       // Ok time to redraw all MDI Windows.
    pMDIClient->SetRedraw( TRUE );
    pMDIClient->RedrawWindow( NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN  );
}




Neville Franks, Author of ED for Windows. www.getsoft.com
QuestionHow to test a thread handle is valid handle? Pin
Lizp12-Nov-02 21:40
Lizp12-Nov-02 21:40 
AnswerRe: How to test a thread handle is valid handle? Pin
Daniel Turini12-Nov-02 22:06
Daniel Turini12-Nov-02 22:06 
GeneralRe: How to test a thread handle is valid handle? Pin
Lizp12-Nov-02 23:00
Lizp12-Nov-02 23:00 
GeneralRe: How to test a thread handle is valid handle? Pin
Daniel Turini12-Nov-02 23:23
Daniel Turini12-Nov-02 23:23 
GeneralAWARE!! Re: How to test a thread handle is valid handle? Pin
Hugo Hallman16-Nov-02 9:15
Hugo Hallman16-Nov-02 9:15 
GeneralCCriticalSection, CDatabase, CRecordset Pin
zecodela12-Nov-02 21:37
zecodela12-Nov-02 21:37 
GeneralStatusbar update problem Pin
Anonymous12-Nov-02 21:17
Anonymous12-Nov-02 21:17 
Generalproblem with unicode and XML Pin
12-Nov-02 21:04
suss12-Nov-02 21:04 
GeneralRe: problem with unicode and XML Pin
Alois Kraus12-Nov-02 21:47
Alois Kraus12-Nov-02 21:47 
GeneralRe: problem with unicode and XML Pin
Anonymous12-Nov-02 22:47
Anonymous12-Nov-02 22:47 
GeneralRe: problem with unicode and XML Pin
Alois Kraus13-Nov-02 7:06
Alois Kraus13-Nov-02 7:06 
GeneralRe: problem with unicode and XML Pin
Ernesto Perales Soto13-Nov-02 14:03
Ernesto Perales Soto13-Nov-02 14:03 
GeneralCommandBars missing... Pin
Daniel Strigl12-Nov-02 20:38
Daniel Strigl12-Nov-02 20:38 
GeneralInt2Type Generic Programming :: C++ Pin
valikac12-Nov-02 20:34
valikac12-Nov-02 20:34 
GeneralRe: Int2Type Generic Programming :: C++ Pin
Christian Graus12-Nov-02 20:48
protectorChristian Graus12-Nov-02 20:48 
GeneralRe: Int2Type Generic Programming :: C++ Pin
Joaquín M López Muñoz12-Nov-02 21:49
Joaquín M López Muñoz12-Nov-02 21:49 
GeneralRe: Int2Type Generic Programming :: C++ Pin
valikac13-Nov-02 11:11
valikac13-Nov-02 11:11 

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.