source: trunk/src/advtabs/Debug.cpp @ 410

Revision 410, 1.3 KB checked in by Eoin, 12 years ago (diff)

408 Snapshot.

Line 
1
2//         Copyright Eóin O'Callaghan 2006 - 2008.
3// Distributed under the Boost Software License, Version 1.0.
4//    (See accompanying file LICENSE_1_0.txt or copy at
5//          http://www.boost.org/LICENSE_1_0.txt)
6
7#include "stdAfx.hpp"
8
9#include "../HaliteWindow.hpp"
10#include "../HaliteListViewCtrl.hpp"
11
12#include "Debug.hpp"
13
14void AdvDebugDialog::onLoginCheck(UINT, int, HWND hWnd)
15{
16        LRESULT result = ::SendMessage(hWnd, BM_GETCHECK, 0, 0);
17       
18        if (result == BST_CHECKED)
19        {
20                ::EnableWindow(GetDlgItem(IDC_TRACKER_USER), true);
21                ::EnableWindow(GetDlgItem(IDC_TRACKER_PASS), true);
22        }
23        else
24        {
25                ::EnableWindow(GetDlgItem(IDC_TRACKER_USER), false);
26                ::EnableWindow(GetDlgItem(IDC_TRACKER_PASS), false);
27        }
28}
29
30LRESULT AdvDebugDialog::onInitDialog(HWND, LPARAM)
31{
32        logList.Attach(GetDlgItem(IDC_DEBUGLISTVIEW));
33
34        resizeClass::DlgResize_Init(false, true, WS_CLIPCHILDREN);     
35        DoDataExchange(false);
36       
37        return 0;
38}
39
40BOOL AdvDebugDialog::DoDataExchange(BOOL bSaveAndValidate, UINT nCtlID)
41{       
42        DDX_CHECK(IDC_DEBUGFILECHECK, halite().logToFile_)
43        DDX_CHECK(IDC_DEBUGDEBUGCHECK, halite().logDebug_)
44
45        return TRUE;
46}
47
48void AdvDebugDialog::onClose()
49{       
50        if(::IsWindow(m_hWnd)) 
51        {
52                ::DestroyWindow(m_hWnd);
53        }
54}
55
56void AdvDebugDialog::onDebugOption(UINT, int, HWND)
57{
58        DoDataExchange(true);
59}
Note: See TracBrowser for help on using the repository browser.