Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

34 lines
602 B

//
//
//
#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;
}