Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "stdafx.h"
#include <CPropertyPageAutoDelete.hpp>
UINT CALLBACK PropSheetPageProc ( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp ) { CPropertyPageAutoDelete* pPage = (CPropertyPageAutoDelete*)(ppsp->lParam);
if( pPage == NULL ) { return 0; }
UINT nResult = (*(pPage->m_pfnOldPropCallback))(hwnd, uMsg, ppsp);
if (uMsg == PSPCB_RELEASE) { delete pPage; } return nResult; }
CPropertyPageAutoDelete::CPropertyPageAutoDelete ( UINT nIDTemplate ):CPropertyPage(nIDTemplate) { m_pfnOldPropCallback = m_psp.pfnCallback; m_psp.pfnCallback = PropSheetPageProc; }
|