OSDN Git Service

Remove TODO comments, some lines commented out.
authorKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Sun, 15 May 2011 09:41:03 +0000 (18:41 +0900)
committerKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Thu, 26 May 2011 23:35:48 +0000 (08:35 +0900)
13 files changed:
xkeymacs/104keyboard.cpp
xkeymacs/109keyboard.cpp
xkeymacs/key.cpp
xkeymacs/mainfrm.cpp
xkeymacs/optionsdlg.cpp
xkeymacs/profile.cpp
xkeymacs/properties.cpp
xkeymacs/propertiesadvanced.cpp
xkeymacs/propertiesbasic.cpp
xkeymacs/propertieslist.cpp
xkeymacs/xkeymacs.cpp
xkeymacsdll/xkeymacsdll.cpp
xkeymacsdll/xkeymacsdll.h

index 2004953..38dec5d 100644 (file)
@@ -48,7 +48,6 @@ BOOL C104Keyboard::OnInitDialog()
 {\r
        CDialog::OnInitDialog();\r
        \r
-       // TODO: Add extra initialization here\r
        CString szWindowText;\r
        CString szFor;\r
        switch (m_HkeyType) {\r
@@ -111,7 +110,6 @@ BOOL C104Keyboard::OnInitDialog()
 \r
 void C104Keyboard::OnOK() \r
 {\r
-       // TODO: Add extra validation here\r
        if (CProfile::LostKeyWarning(m_HkeyType) != IDCANCEL) {\r
                CProfile::SaveScanCodeMap(m_HkeyType);\r
 \r
@@ -123,7 +121,6 @@ void C104Keyboard::OnDestroy()
 {\r
        CDialog::OnDestroy();\r
 \r
-       // TODO: Add your message handler code here\r
        for (int i = 0; i < sizeof(KeyboardLayouts) / sizeof(KeyboardLayouts[0]); ++i) {\r
                if (!GetDlgItem(KeyboardLayouts[i].nBaseControlID)\r
                 || !GetDlgItem(KeyboardLayouts[i].nCurrentControlID)) {\r
@@ -143,7 +140,6 @@ void C104Keyboard::OnDestroy()
 \r
 BOOL C104Keyboard::PreTranslateMessage(MSG *const pMsg) \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        switch (pMsg->message) {\r
        case WM_LBUTTONDOWN:\r
        case WM_LBUTTONUP:\r
index 5e3d48b..17b0433 100644 (file)
@@ -48,7 +48,6 @@ BOOL C109Keyboard::OnInitDialog()
 {\r
        CDialog::OnInitDialog();\r
        \r
-       // TODO: Add extra initialization here\r
        CString szWindowText;\r
        CString szFor;\r
        switch (m_HkeyType) {\r
@@ -111,7 +110,6 @@ BOOL C109Keyboard::OnInitDialog()
 \r
 void C109Keyboard::OnOK() \r
 {\r
-       // TODO: Add extra validation here\r
        if (CProfile::LostKeyWarning(m_HkeyType) != IDCANCEL) {\r
                CProfile::SaveScanCodeMap(m_HkeyType);\r
 \r
@@ -123,7 +121,6 @@ void C109Keyboard::OnDestroy()
 {\r
        CDialog::OnDestroy();\r
 \r
-       // TODO: Add your message handler code here\r
        for (int i = 0; i < sizeof(KeyboardLayouts) / sizeof(KeyboardLayouts[0]); ++i) {\r
                if (!GetDlgItem(KeyboardLayouts[i].nBaseControlID)\r
                 || !GetDlgItem(KeyboardLayouts[i].nCurrentControlID)) {\r
index 3df9698..54e98be 100644 (file)
@@ -130,7 +130,6 @@ int CKey::GetKeyType()
 \r
 void CKey::OnLButtonDown(const UINT nFlags, const CPoint point) \r
 {\r
-       // TODO: Add your message handler code here and/or call default\r
        switch (m_nKeyType) {\r
        case NORMAL_KEY:\r
                SetKeyType(PUSHED_KEY);\r
@@ -146,7 +145,6 @@ void CKey::OnLButtonDown(const UINT nFlags, const CPoint point)
 \r
 void CKey::OnLButtonUp(const UINT nFlags, const CPoint point) \r
 {\r
-       // TODO: Add your message handler code here and/or call default\r
        if (m_nKeyType == PUSHED_KEY) {\r
                SetKeyType(NORMAL_KEY);\r
        }\r
@@ -242,7 +240,6 @@ int CKey::GetPointedKey(const CPoint point)
 \r
 void CKey::OnMouseMove(const UINT nFlags, const CPoint point) \r
 {\r
-       // TODO: Add your message handler code here and/or call default\r
        if (nFlags & MK_LBUTTON) {\r
                if (m_nKeyType == PUSHED_KEY) {\r
                        int nPointedKey = GetPointedKey(point);\r
index 7ef3874..78b4db9 100644 (file)
@@ -43,8 +43,6 @@ END_MESSAGE_MAP()
 \r
 CMainFrame::CMainFrame()\r
 {\r
-       // TODO: add member initialization code here\r
-\r
        m_pXkeymacsDll                  = new CXkeymacsDll;\r
        m_pPropertiesDlg                = new CProperties;\r
        m_nResultPropertiesDlg  = -1;\r
@@ -338,7 +336,6 @@ void CMainFrame::ShowRightMenu(const ICON_TYPE icon)
 // get message of icon on system tray\r
 LRESULT CMainFrame::WindowProc(const UINT message, const WPARAM wParam, const LPARAM lParam) \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        static UINT s_uTaskbarRestart;\r
 \r
        switch (message) {\r
@@ -385,14 +382,12 @@ void CMainFrame::PopUpOptionsDialog()
 \r
 void CMainFrame::OnOptions() \r
 {\r
-       // TODO: Add your command handler code here\r
        PopUpOptionsDialog();\r
 }\r
 \r
 // stop/start keyboard hook\r
 void CMainFrame::OnDisable() \r
 {\r
-       // TODO: Add your command handler code here\r
        if (m_pXkeymacsDll->IsKeyboardHook()) {\r
                m_pXkeymacsDll->SetKeyboardHookFlag(FALSE);\r
        } else {\r
@@ -411,7 +406,6 @@ void CMainFrame::CloseDialog(CDialog *const pDialog, int *const pnResult)
 \r
 void CMainFrame::OnQuit() \r
 {\r
-       // TODO: Add your command handler code here\r
        CloseDialog(m_pAboutDlg, &m_nResultAboutDlg);\r
        CloseDialog(m_pPropertiesDlg, &m_nResultPropertiesDlg);\r
        CloseDialog(m_pOptionsDlg, &m_nResultOptionsDlg);\r
@@ -433,19 +427,16 @@ void CMainFrame::PopUpAboutDialog()
 \r
 void CMainFrame::OnAbout() \r
 {\r
-       // TODO: Add your command handler code here\r
        PopUpAboutDialog();\r
 }\r
 \r
 void CMainFrame::OnKeyboard() \r
 {\r
-       // TODO: Add your command handler code here\r
        PopUpKeyboardDialog(CURRENT_USER);\r
 }\r
 \r
 void CMainFrame::OnKeyboardAnyUser() \r
 {\r
-       // TODO: Add your command handler code here\r
        PopUpKeyboardDialog(LOCAL_MACHINE);\r
 }\r
 \r
@@ -460,27 +451,23 @@ void CMainFrame::PopUpKeyboardDialog(const HKEY_TYPE hkeyType)
 \r
 void CMainFrame::OnImport() \r
 {\r
-       // TODO: Add your command handler code here\r
        CProfile::ImportProperties();\r
        CProfile::InitDllData();\r
 }\r
 \r
 void CMainFrame::OnExport() \r
 {\r
-       // TODO: Add your command handler code here\r
        CProfile::ExportProperties();\r
 }\r
 \r
 void CMainFrame::OnReset() \r
 {\r
-       // TODO: Add your command handler code here\r
        m_pXkeymacsDll->ReleaseHooks();\r
        m_pXkeymacsDll->SetHooks();\r
 }\r
 \r
 void CMainFrame::OnHelpFinder() \r
 {\r
-       // TODO: Add your command handler code here\r
        TCHAR szPath[MAX_PATH] = {'\0'};\r
        const TCHAR szExt[] = _T("txt");\r
        _tmakepath(szPath, NULL, NULL, CString(MAKEINTRESOURCE(IDS_README)), szExt);\r
index 18eef9f..bbf9045 100644 (file)
@@ -57,7 +57,6 @@ BOOL COptionsDlg::OnInitDialog()
 {\r
        CDialog::OnInitDialog();\r
        \r
-       // TODO: Add extra initialization here\r
        // clear all check\r
        m_cAutoRun.SetCheck(0);\r
        m_cCx.SetCheck(0);\r
@@ -122,7 +121,6 @@ BOOL COptionsDlg::OnInitDialog()
 \r
 void COptionsDlg::OnOK() \r
 {\r
-       // TODO: Add extra validation here\r
        // for auto run\r
        {\r
                TCHAR szFileName[MAX_PATH] = {'\0'};\r
index 86aac6f..384b526 100644 (file)
@@ -189,7 +189,6 @@ BOOL CALLBACK CProfile::EnumWindowsProc(const HWND hWnd, const LPARAM lParam)
        }\r
        return TRUE;\r
 }\r
-\r
        \r
 //////////////////////////////////////////////////////////////////////\r
 // Construction/Destruction\r
@@ -673,7 +672,6 @@ void CProfile::LevelUp()
        CString szEntry;\r
        szEntry.Format(_T("Level"));\r
 \r
-//     const int nCurrentLevel = AfxGetApp()->GetProfileInt(szSection, szEntry, nDefalutLevel);\r
        switch (AfxGetApp()->GetProfileInt(szSection, szEntry, nDefalutLevel)) {\r
        case nDefalutLevel:\r
                {\r
index b511057..7cc87ac 100644 (file)
@@ -66,7 +66,6 @@ BOOL CProperties::OnInitDialog()
 {\r
        CDialog::OnInitDialog();\r
        \r
-       // TODO: Add extra initialization here\r
        while (m_sheet.GetPageCount()) {\r
                m_sheet.RemovePage(0);\r
        }\r
@@ -103,7 +102,6 @@ BOOL CProperties::OnInitDialog()
 \r
 void CProperties::OnDropdownApplication() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        InitApplicationList();\r
 \r
        int nID = GetCurrentApplicationID();\r
@@ -119,7 +117,6 @@ void CProperties::OnDropdownApplication()
 \r
 void CProperties::OnSelchangeApplication() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        GetDialogData();\r
 \r
        CProfile::GetApplicationTitle(&m_cApplication, m_szCurrentApplication, m_cApplication.GetCurSel());\r
@@ -284,7 +281,6 @@ void CProperties::EnableUseDefaultButton(BOOL bEnable)
 \r
 void CProperties::OnOK() \r
 {\r
-       // TODO: Add extra validation here\r
        OnApply();\r
 \r
        CDialog::OnOK();\r
@@ -292,7 +288,6 @@ void CProperties::OnOK()
 \r
 void CProperties::OnCancel() \r
 {\r
-       // TODO: Add extra cleanup here\r
        CProfile::LoadRegistryData();\r
 \r
        CDialog::OnCancel();\r
@@ -300,27 +295,23 @@ void CProperties::OnCancel()
 \r
 void CProperties::OnApply() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        GetDialogData();\r
        CProfile::SaveRegistryData();\r
 }\r
 \r
 void CProperties::OnLoadDefault() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        CProfile::CopyData(m_szCurrentApplication, CString(MAKEINTRESOURCE(IDS_DEFAULT)));\r
        SetDialogData(m_szCurrentApplication);\r
 }\r
 \r
 void CProperties::OnSelectAll() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        m_basic.SetAllDialogData(1, TRUE);\r
 }\r
 \r
 void CProperties::OnClearAll() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        m_basic.SetAllDialogData(0, TRUE);\r
 }\r
 \r
@@ -336,21 +327,18 @@ CString CProperties::GetCurrentApplication()
 \r
 void CProperties::OnSettingDefault() \r
 {\r
-       // TODO: Add your control notification handler code here\r
-       UpdateData();   // get data\r
+       UpdateData(); // get data\r
        EnableControl(ACTIVE_TAB);\r
 }\r
 \r
 void CProperties::OnSettingDisable() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        UpdateData();\r
        EnableControl(ACTIVE_TAB);\r
 }\r
 \r
 void CProperties::OnSettingSpecific() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        UpdateData();\r
        EnableControl(ACTIVE_TAB);\r
 \r
index 13ae811..77acae2 100644 (file)
@@ -83,7 +83,6 @@ END_MESSAGE_MAP()
 \r
 BOOL CPropertiesAdvanced::OnSetActive() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        m_pProperties->EnableControl(ADVANCED_TAB);\r
        SetDialogData(m_pProperties->GetCurrentApplication());\r
 \r
@@ -129,7 +128,6 @@ int CPropertiesAdvanced::OnCreate(LPCREATESTRUCT lpCreateStruct)
        if (CPropertyPage::OnCreate(lpCreateStruct) == -1)\r
                return -1;\r
 \r
-       // TODO: Add your specialized creation code here\r
        m_pProperties = (CProperties *)GetParent()->GetParent();\r
 \r
        return 0;\r
@@ -137,7 +135,6 @@ int CPropertiesAdvanced::OnCreate(LPCREATESTRUCT lpCreateStruct)
 \r
 BOOL CPropertiesAdvanced::OnKillActive() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        GetDialogData();\r
 \r
        return CPropertyPage::OnKillActive();\r
@@ -161,7 +158,6 @@ BOOL CPropertiesAdvanced::OnInitDialog()
 {\r
        CPropertyPage::OnInitDialog();\r
 \r
-       // TODO: Add extra initialization here\r
        m_nApplicationID = m_pProperties->GetApplicationID();\r
        InitCategoryList();\r
        SetCommands();\r
@@ -327,14 +323,12 @@ void CPropertiesAdvanced::SetCurrentKeys()
 \r
 void CPropertiesAdvanced::OnSelchangeCategory() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        SetCommands();\r
        ClearNewKey();\r
 }\r
 \r
 void CPropertiesAdvanced::OnSelchangeCommands() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        BOOL bEnableWindow = FALSE;\r
        CString szCurrentCommandName;\r
        m_cCommands.GetText(m_cCommands.GetCurSel(), szCurrentCommandName);\r
@@ -354,7 +348,6 @@ void CPropertiesAdvanced::OnSelchangeCommands()
 \r
 void CPropertiesAdvanced::OnSelchangeCurrentKeys() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        TCHAR szKeyBind[128] = {'\0'};\r
        m_cCurrentKeys.GetText(m_cCurrentKeys.GetCurSel(), szKeyBind);\r
        CProfile::ReadKeyBind(&m_nRemoveCommandType, &m_nRemoveKey, szKeyBind);\r
@@ -363,7 +356,6 @@ void CPropertiesAdvanced::OnSelchangeCurrentKeys()
 \r
 void CPropertiesAdvanced::OnSetfocusNewKey() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        m_pNewKey = &m_cNewKey;\r
        m_pAssign = &m_cAssign;\r
        m_pCurrentlyAssigned = &m_cCurrentlyAssigned;\r
@@ -375,7 +367,6 @@ void CPropertiesAdvanced::OnSetfocusNewKey()
 \r
 void CPropertiesAdvanced::OnAssign() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        // Remove Current Setting\r
        CProfile::SetCommandID(m_nApplicationID, m_nAssignCommandType, m_nAssignKey, 0);\r
        SetCommandID(m_nAssignCommandType, m_nAssignKey, 0);\r
@@ -404,7 +395,6 @@ void CPropertiesAdvanced::OnAssign()
 \r
 void CPropertiesAdvanced::OnRemove() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        CString szCategory;\r
        m_cCategory.GetLBText(m_cCategory.GetCurSel(), szCategory);\r
 \r
@@ -425,7 +415,6 @@ void CPropertiesAdvanced::OnRemove()
 \r
 void CPropertiesAdvanced::OnResetAll() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        CProfile::LoadRegistryData();\r
        InitCommandIDs();\r
        SetCurrentKeys();\r
@@ -575,7 +564,6 @@ void CPropertiesAdvanced::InitCommandIDs()
 \r
 void CPropertiesAdvanced::OnCX() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        if (m_nAssignKey) {\r
                OnSetfocusNewKey();\r
                SetNewKey();\r
@@ -584,7 +572,6 @@ void CPropertiesAdvanced::OnCX()
 \r
 void CPropertiesAdvanced::OnKillfocusNewKey() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        if (m_hKeyboardHook) {\r
                ::UnhookWindowsHookEx(m_hKeyboardHook);\r
        }\r
@@ -593,7 +580,6 @@ void CPropertiesAdvanced::OnKillfocusNewKey()
 \r
 void CPropertiesAdvanced::OnEnableCua() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        UpdateData();\r
        CProfile::SetEnableCUA(m_nApplicationID, m_bEnableCUA);\r
 }\r
index a9604a6..6995f2f 100644 (file)
@@ -116,7 +116,6 @@ END_MESSAGE_MAP()
 \r
 BOOL CPropertiesBasic::OnSetActive() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        m_pProperties->EnableControl(BASIC_TAB);\r
        SetDialogData(m_pProperties->GetCurrentApplication());\r
 \r
@@ -240,8 +239,7 @@ int CPropertiesBasic::OnCreate(LPCREATESTRUCT lpCreateStruct)
 {\r
        if (CPropertyPage::OnCreate(lpCreateStruct) == -1)\r
                return -1;\r
-       \r
-       // TODO: Add your specialized creation code here\r
+\r
        m_pProperties = (CProperties *)GetParent()->GetParent();\r
 \r
        return 0;\r
@@ -254,115 +252,96 @@ void CPropertiesBasic::GetDialogData()
 \r
 void CPropertiesBasic::OnAlt() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_ALT);\r
 }\r
 \r
 void CPropertiesBasic::OnC_() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_C_);\r
 }\r
 \r
 void CPropertiesBasic::OnCa() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CA);\r
 }\r
 \r
 void CPropertiesBasic::OnCb() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CB);\r
 }\r
 \r
 void CPropertiesBasic::OnCbackslash() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CBACKSLASH);\r
 }\r
 \r
 void CPropertiesBasic::OnCbackslash106() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CBACKSLASH_106);\r
 }\r
 \r
 void CPropertiesBasic::OnCd() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CD);\r
 }\r
 \r
 void CPropertiesBasic::OnCdigit() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CDIGIT);\r
 }\r
 \r
 void CPropertiesBasic::OnCe() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CE);\r
 }\r
 \r
 void CPropertiesBasic::OnCf() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CF);\r
 }\r
 \r
 void CPropertiesBasic::OnCg() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CG);\r
 }\r
 \r
 void CPropertiesBasic::OnCh() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CH);\r
 }\r
 \r
 void CPropertiesBasic::OnCi() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CI);\r
 }\r
 \r
 void CPropertiesBasic::OnCk() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CK);\r
 }\r
 \r
 void CPropertiesBasic::OnCl() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CL);\r
 }\r
 \r
 void CPropertiesBasic::OnCm() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CM);\r
 }\r
 \r
 void CPropertiesBasic::OnCms5() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CMS5);\r
 }\r
 \r
 void CPropertiesBasic::OnCn() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CN);\r
 }\r
 \r
 void CPropertiesBasic::OnCo() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CO);\r
        if (IsDlgButtonChecked(IDC_CO) == BST_CHECKED) {\r
                CheckDlgButton(IDC_CO2, BST_UNCHECKED);\r
@@ -372,7 +351,6 @@ void CPropertiesBasic::OnCo()
 \r
 void CPropertiesBasic::OnCo2() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CO2);\r
        if (IsDlgButtonChecked(IDC_CO2) == BST_CHECKED) {\r
                CheckDlgButton(IDC_CO, BST_UNCHECKED);\r
@@ -382,247 +360,206 @@ void CPropertiesBasic::OnCo2()
 \r
 void CPropertiesBasic::OnCp() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CP);\r
 }\r
 \r
 void CPropertiesBasic::OnCq() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CQ);\r
 }\r
 \r
 void CPropertiesBasic::OnCr() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CR);\r
 }\r
 \r
 void CPropertiesBasic::OnCs() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CS);\r
 }\r
 \r
 void CPropertiesBasic::OnCslash() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CSLASH);\r
 }\r
 \r
 void CPropertiesBasic::OnCspace() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CSPACE);\r
 }\r
 \r
 void CPropertiesBasic::OnCt() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CT);\r
 }\r
 \r
 void CPropertiesBasic::OnCu() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CU);\r
 }\r
 \r
 void CPropertiesBasic::OnCv() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CV);\r
 }\r
 \r
 void CPropertiesBasic::OnCw() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CW);\r
 }\r
 \r
 void CPropertiesBasic::OnCxb() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXB);\r
 }\r
 \r
 void CPropertiesBasic::OnCxcc() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCC);\r
 }\r
 \r
 void CPropertiesBasic::OnCxcf() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCF);\r
 }\r
 \r
 void CPropertiesBasic::OnCxcj() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCJ);\r
 }\r
 \r
 void CPropertiesBasic::OnCxcp() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCP);\r
 }\r
 \r
 void CPropertiesBasic::OnCxcs() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCS);\r
 }\r
 \r
 void CPropertiesBasic::OnCxct() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCT);\r
 }\r
 \r
 void CPropertiesBasic::OnCxcw() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXCW);\r
 }\r
 \r
 void CPropertiesBasic::OnCxe() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXE);\r
 }\r
 \r
 void CPropertiesBasic::OnCxh() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXH);\r
 }\r
 \r
 void CPropertiesBasic::OnCxk() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXK);\r
 }\r
 \r
 void CPropertiesBasic::OnCxs0() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXS0);\r
 }\r
 \r
 void CPropertiesBasic::OnCxs9() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXS9);\r
 }\r
 \r
 void CPropertiesBasic::OnCxu() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CXU);\r
 }\r
 \r
 void CPropertiesBasic::OnCy() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CY);\r
 }\r
 \r
 void CPropertiesBasic::OnCz() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_CZ);\r
 }\r
 \r
 void CPropertiesBasic::OnEscape() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_ESCAPE);\r
 }\r
 \r
 void CPropertiesBasic::OnLeftAlt() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_LEFT_ALT);\r
 }\r
 \r
 void CPropertiesBasic::OnMb() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MB);\r
 }\r
 \r
 void CPropertiesBasic::OnMd() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MD);\r
 }\r
 \r
 void CPropertiesBasic::OnMf() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MF);\r
 }\r
 \r
 void CPropertiesBasic::OnMi() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MI);\r
 }\r
 \r
 void CPropertiesBasic::OnMs1() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MS1);\r
 }\r
 \r
 void CPropertiesBasic::OnMs5() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MS5);\r
 }\r
 \r
 void CPropertiesBasic::OnMscomma() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MSCOMMA);\r
 }\r
 \r
 void CPropertiesBasic::OnMsperiod() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MSPERIOD);\r
 }\r
 \r
 void CPropertiesBasic::OnMv() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MV);\r
 }\r
 \r
 void CPropertiesBasic::OnMw() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MW);\r
 }\r
 \r
 void CPropertiesBasic::OnMy() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MY);\r
 }\r
 \r
 void CPropertiesBasic::OnRightAlt() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_RIGHT_ALT);\r
 }\r
 \r
 void CPropertiesBasic::OnSquareBra() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_SQUARE_BRA);\r
 }\r
 \r
@@ -651,7 +588,6 @@ void CPropertiesBasic::Changed(int nObjectID)
 \r
 BOOL CPropertiesBasic::OnKillActive() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        GetDialogData();\r
 \r
        return CPropertyPage::OnKillActive();\r
@@ -682,7 +618,6 @@ void CPropertiesBasic::EnableControl()
 \r
 BOOL CPropertiesBasic::PreTranslateMessage(MSG* pMsg) \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        m_ToolTip.RelayEvent(pMsg);\r
 \r
        return CPropertyPage::PreTranslateMessage(pMsg);\r
@@ -692,7 +627,6 @@ BOOL CPropertiesBasic::OnInitDialog()
 {\r
        CPropertyPage::OnInitDialog();\r
 \r
-       // TODO: Add extra initialization here\r
        if (m_ToolTip.Create(this)) {\r
                for (int nCommandID = 0; nCommandID < sizeof(Commands) / sizeof(Commands[0]); ++nCommandID) {\r
                        CString szCommandName = CXkeymacsData::GetCommandName(nCommandID);\r
@@ -719,42 +653,35 @@ BOOL CPropertiesBasic::OnInitDialog()
 \r
 void CPropertiesBasic::OnMdel() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MDEL);\r
 }\r
 \r
 void CPropertiesBasic::OnMf12() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MF12);\r
 }\r
 \r
 void CPropertiesBasic::OnMt() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MT);\r
 }\r
 \r
 void CPropertiesBasic::OnMc() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MC);\r
 }\r
 \r
 void CPropertiesBasic::OnMl() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_ML);\r
 }\r
 \r
 void CPropertiesBasic::OnMu() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MU);\r
 }\r
 \r
 void CPropertiesBasic::OnMx() \r
 {\r
-       // TODO: Add your control notification handler code here\r
        Changed(IDC_MX);\r
 }\r
index 7d735f4..d985603 100644 (file)
@@ -52,7 +52,6 @@ END_MESSAGE_MAP()
 \r
 BOOL CPropertiesList::OnSetActive() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        m_pProperties->EnableControl(LIST_TAB);\r
        SetDialogData(m_pProperties->GetCurrentApplication());\r
 \r
@@ -126,7 +125,6 @@ int CPropertiesList::OnCreate(LPCREATESTRUCT lpCreateStruct)
        if (CPropertyPage::OnCreate(lpCreateStruct) == -1)\r
                return -1;\r
 \r
-       // TODO: Add your specialized creation code here\r
        m_pProperties = (CProperties *)GetParent()->GetParent();\r
 \r
        return 0;\r
@@ -134,9 +132,7 @@ int CPropertiesList::OnCreate(LPCREATESTRUCT lpCreateStruct)
 \r
 BOOL CPropertiesList::OnKillActive() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
        GetDialogData();\r
-\r
        return CPropertyPage::OnKillActive();\r
 }\r
 \r
@@ -151,7 +147,6 @@ BOOL CPropertiesList::OnInitDialog()
 {\r
        CPropertyPage::OnInitDialog();\r
 \r
-       // TODO: Add extra initialization here\r
        DWORD dwStyle = m_cPropertiesList.GetExtendedStyle();\r
        dwStyle |= LVS_EX_FULLROWSELECT;\r
        m_cPropertiesList.SetExtendedStyle(dwStyle);\r
@@ -185,7 +180,6 @@ int CALLBACK CPropertiesList::SortKey(LPARAM lParam1, LPARAM lParam2, LPARAM lPa
 void CPropertiesList::OnColumnclickPropertiesList(NMHDR* pNMHDR, LRESULT* pResult) \r
 {\r
        NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;\r
-       // TODO: Add your control notification handler code here\r
        if (m_nSelectedColumn == pNMListView->iSubItem) {\r
                m_bSortAscending = !m_bSortAscending;\r
        } else {\r
index 28edcd5..2fc19e0 100644 (file)
@@ -31,9 +31,6 @@ END_MESSAGE_MAP()
 \r
 CXkeymacsApp::CXkeymacsApp()\r
 {\r
-       // TODO: add construction code here,\r
-       // Place all significant initialization in InitInstance\r
-\r
        m_Instance = FirstInstance;\r
 }\r
 \r
@@ -72,9 +69,6 @@ BOOL CXkeymacsApp::InitInstance()
 #endif\r
 \r
        // Change the registry key under which our settings are stored.\r
-       // TODO: You should modify this string to be something appropriate\r
-       // such as the name of your company or organization.\r
-//     SetRegistryKey(_T("Local AppWizard-Generated Applications"));\r
        SetRegistryKey(IDS_REGISTRY_KEY);\r
 //\r
 //     LoadStdProfileSettings();  // Load standard INI file options (including MRU)\r
@@ -94,7 +88,6 @@ BOOL CXkeymacsApp::InitInstance()
        SetClassLongPtr(m_pMainWnd->m_hWnd, GCLP_HICON, (LONG_PTR)LoadIcon(IDR_MAINFRAME));\r
 \r
        // set registry key\r
-//     CMainFrame *pMainWnd = (CMainFrame*)m_pMainWnd;\r
        CProfile::InitDllData();\r
 \r
        return TRUE;\r
@@ -199,8 +192,6 @@ void CXkeymacsApp::OnAppAbout()
 \r
 int CXkeymacsApp::ExitInstance() \r
 {\r
-       // TODO: Add your specialized code here and/or call the base class\r
-\r
        if (m_Instance == FirstInstance) {\r
            ReleaseMutex( m_hMutex );\r
                CloseHandle( m_hMutex );\r
@@ -215,20 +206,17 @@ int CXkeymacsApp::ExitInstance()
 \r
 void CAboutDlg::OnOK() \r
 {\r
-       // TODO: Add extra validation here\r
        CDialog::OnOK();\r
 }\r
 \r
 \r
 void CAboutDlg::OnClose() \r
 {\r
-       // TODO: Add your message handler code here and/or call default\r
        CDialog::OnClose();\r
 }\r
 \r
 void CAboutDlg::OnUrl() \r
 {\r
-       // TODO: Add your message handler code here and/or call default\r
        CString szURL;\r
        m_cURL.GetWindowText(szURL);\r
 \r
@@ -238,21 +226,18 @@ void CAboutDlg::OnUrl()
 HBRUSH CAboutDlg::OnCtlColor(CDC *pDC, CWnd *pWnd, UINT nCtlColor) \r
 {\r
        HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);\r
-       \r
-       // TODO: Change any attributes of the DC here\r
+\r
        COLORREF crBlue = RGB(0, 0, 0xff);\r
 \r
        if (pWnd == &m_cURL) {\r
                pDC->SetTextColor(crBlue);\r
        }\r
 \r
-       // TODO: Return a different brush if the default is not desired\r
        return hbr;\r
 }\r
 \r
 BOOL CAboutDlg::OnSetCursor(CWnd *pWnd, UINT nHitTest, UINT message) \r
 {\r
-       // TODO: Add your message handler code here and/or call default\r
        CRect rect;\r
        m_cURL.GetWindowRect(rect);\r
 \r
index 05d7d78..f1e2b8b 100644 (file)
@@ -1858,7 +1858,7 @@ void CXkeymacsDll::CallMacro()
        }\r
 }\r
 \r
-/*/\r
+/*\r
 void CXkeymacsDll::CallMacro() // for debug\r
 {\r
        CString sz;\r
@@ -1876,7 +1876,7 @@ void CXkeymacsDll::CallMacro()    // for debug
        }\r
 //     CUtils::Log(sz);\r
 }\r
-/**/\r
+*/\r
 \r
 void CXkeymacsData::Set106Keyboard(BOOL b106Keyboard)\r
 {\r
index 28201f9..b611fef 100644 (file)
@@ -181,7 +181,6 @@ public:
        static int GetAccelerate(void);\r
        static void SetAccelerate(int nAccelerate);\r
        void SetWindowText(int nApplicationID, CString szWindowText);\r
-//     static int m_nPassThrough;\r
        void AddAllShell_NotifyIcon();\r
        void DeleteAllShell_NotifyIcon();\r
        void SetKillRingMax(int nApplicationID, int nKillRingMax);\r