m_pMainWnd and GetMainWnd();
От: mr.fluke  
Дата: 22.09.04 13:14
Оценка:
m_pMainWnd and GetMainWnd();
класа СWinApp

какая между ними разница?
Re: m_pMainWnd and GetMainWnd();
От: MicVit  
Дата: 22.09.04 13:27
Оценка:
Здравствуйте, mr.fluke, Вы писали:

MF>m_pMainWnd and GetMainWnd();

MF>класа СWinApp

MF>какая между ними разница?




CWnd* CWinThread::GetMainWnd()
{
    if (m_pActiveWnd != NULL)
        return m_pActiveWnd;    // probably in-place active

    // when not inplace active, just return main window
    if (m_pMainWnd != NULL)
        return m_pMainWnd;

    return CWnd::GetActiveWindow();
}




If your application is an OLE server, call this function to retrieve a pointer to the active main window of the application instead of directly referring to the m_pMainWnd member of the application object.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.