Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » plz help me Collapse All
Subject Author Date
sung yochan Feb 25, 2009 - 6:21 PM

hello.


I made MDI windows program. 

Like this :


class CChildFrame : public CMDIChildWnd

{

    CExtControlBar  m_wndSystemLog;

    CSystemLogView  m_SystemLogView;

    ....



    int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)

    {

         ....

         if( !m_wndSystemLog.Create( _T("System Log"), this, ID_VIEW_CHILDFRAME_BAR_0 )

         || !m_SystemLogView.Create( "SystemLog", "System Log", WS_CHILD|WS_VISIBLE, CRect( 0, 0, 10, 10 ), &m_wndSystemLog, UINT    ( IDC_STATIC ) )  )

        {

            TRACE0("Failed to create m_wndSystemLog\n");

            return -1;  // fail to create

         } 

        m_wndSystemLog.EnableDocking(CBRS_ALIGN_ANY);

        m_wndSystemLog.DockControlBar( AFX_IDW_DOCKBAR_BOTTOM, 2 );   

        ....

    }

}

.....

class CSystemLogView : public CWnd

{

     CRichEditCtrl m_reEdit;

     .....

}


SystemLog Wnd is displaying Log in CRichEdit. 


After several hour, no respond my app. no display UI. CPU usage 100%.


why? I don’t understand.


Please help me.


OS : Window 2000 Profession


Porf-UI LIB 2.84 free version.

Technical Support Feb 26, 2009 - 1:25 PM

There is not enough information in your message to come to any conclusion about the problem. For example, the problem can be hidden in the rich edit control used in the log view implementation. If the rich edit control contains too much text lines, then adding new text lines into it takes big time.