windows-nt/Source/XPSP1/NT/inetsrv/iis/ui/admin/appconfig/aspdebug.cpp
2020-09-26 16:20:57 +08:00

34 lines
602 B
C++

//
//
//
#include "stdafx.h"
#include "AspDebug.h"
LRESULT
CAspDebugPage::OnInitDialog(HWND hDlg, LPARAM lParam)
{
DoDataExchange();
m_ErrorIdx = m_pData->m_SendAspError ? 0 : 1;
m_DefaultErrCtrl.EnableWindow(!m_pData->m_SendAspError);
DoDataExchange(FALSE);
return FALSE;
}
void
CAspDebugPage::OnChangeError(UINT nCode, UINT nID, HWND hWnd)
{
DoDataExchange(TRUE);
m_pData->m_SendAspError = (m_ErrorIdx == 0);
m_DefaultErrCtrl.EnableWindow(!m_pData->m_SendAspError);
SET_MODIFIED(TRUE);
}
BOOL
CAspDebugPage::OnKillActive()
{
DoDataExchange(TRUE);
return TRUE;
}