CWnd::CenterWindow()
Date: 12/13/07
(Code WTF) Keywords: no keywords
Прототип функции:
void CenterWindow(CWnd* pAlternateOwner = NULL);
Реализация:
void CWnd::CenterWindow(CWnd* pAlternateOwner)
{
ASSERT(::IsWindow(m_hWnd));
// determine owner window to center against
DWORD dwStyle = GetStyle();
HWND hWndCenter = pAlternateOwner->GetSafeHwnd();
if (pAlternateOwner == NULL)
{
// ...
}
// ...
}
Один и тот же код и в MFC 7.1, и в 8.0
Source: http://community.livejournal.com/code_wtf/118126.html