//  Beta release only.
//
//  Copyright(c) Ivyware Pty Ltd 2013  (all rights reserved)
//               MELBOURNE, VICTORIA, AUSTRALIA, 3130
//
//  Provided no fee is charged (either by the distributer or user)
//  permission to use, copy, modify, and distribute this software and
//  its documentation for any purpose and without fee is hereby granted,
//  provided that the above copyright notice appear in all copies and
//  that both that copyright notice and this permission notice appear
//  in supporting documentation.
//
//  No waranty or suitablity for purpose is implied.
//
//  Implementation for CDialog extensions
//

#include "StdAfx.h"

#include "CDialog_Ext.h"

//
//  Enables or disables all CDialog controls
//
//  Parameters:  CDialog oCDialog
//               Dialog for which all controls are to be disabled
//
//  Returns:     BOOL
//               Result
BOOL CALLBACK
EoDcontrol ( HWND hwnd, LPARAM lParam)
{
  EnableWindow ( hwnd, lParam );
  return TRUE;
}
BOOL
CDialog_EnableAllControls ( CDialog *pDialog )
{
    return EnumChildWindows ( pDialog->m_hWnd, EoDcontrol, TRUE );
}
BOOL
CDialog_DisableAllControls ( CDialog *pDialog )
{
    return EnumChildWindows ( pDialog->m_hWnd, EoDcontrol, FALSE );
}
