HBRUSH CXXXDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
return hbr;
}
void CXXXDlg::UpdateControls()
{
//IDC_EDIT_SEARCH_STRING
UINT uControls[] = {IDC_BUTTON_1, IDC_MFCEDITBROWSE_PATH, IDC_BUTTON_FILL, IDC_BUTTON_DELETE,IDC_COMBO_QUERY_STRING};
for(int i = 0;i < sizeof(uControls) / sizeof(UINT);i ++)
GetDlgItem(uControls[i])->EnableWindow(m_bConnected);
}