13 void CData::SetWindowText(LPCTSTR lpszWindowText)
\r
15 m_nWindowTextType = CUtils::GetWindowTextType(lpszWindowText);
\r
16 if (m_nWindowTextType == IDS_WINDOW_TEXT_IGNORE) {
\r
17 m_strWindowText = _T('*');
\r
19 m_strWindowText.Format(lpszWindowText);
\r
23 CString CData::GetWindowText()
\r
25 return m_strWindowText;
\r
28 void CData::SetWindowTextType(int nWindowTextType)
\r
30 m_nWindowTextType = nWindowTextType;
\r
33 int CData::GetWindowTextType()
\r
35 return m_nWindowTextType;
\r
38 void CData::SetApplicationName(LPCTSTR lpszApplicationName)
\r
40 m_strApplicationName.Format(lpszApplicationName);
\r
43 CString CData::GetApplicationName()
\r
45 return m_strApplicationName;
\r
48 void CData::SetCommandID(int nCommandType, int nKey, int nCommandID)
\r
50 ASSERT(nCommandType >= 0 || nCommandType < MAX_COMMAND_TYPE);
\r
51 ASSERT(nKey <= 0 || nKey < MAX_KEY);
\r
52 m_nCommandID[nCommandType][nKey] = nCommandID;
\r
55 int CData::GetCommandID(int nCommandType, int nKey)
\r
57 ASSERT(nCommandType >= 0 || nCommandType < MAX_COMMAND_TYPE);
\r
58 ASSERT(nKey <= 0 || nKey < MAX_KEY);
\r
59 return m_nCommandID[nCommandType][nKey];
\r
62 void CData::ClearAll()
\r
64 ZeroMemory(m_nCommandID, sizeof(m_nCommandID));
\r
65 ZeroMemory(m_bAtIbeamCursorOnly, sizeof(m_bAtIbeamCursorOnly));
\r
66 m_strApplicationName.Empty();
\r
69 void CData::SetApplicationTitle(LPCTSTR lpszApplicationTitle)
\r
71 m_strApplicationTitle.Format(lpszApplicationTitle);
\r
72 // delete white space at the end of the application title.
\r
73 while (!m_strApplicationTitle.IsEmpty() &&
\r
74 _istspace(m_strApplicationTitle.GetAt(m_strApplicationTitle.GetLength() - 1)))
\r
75 m_strApplicationTitle.Delete(m_strApplicationTitle.GetLength() - 1);
\r
78 CString CData::GetApplicationTitle()
\r
80 return m_strApplicationTitle;
\r
83 void CData::SetKillRingMax(int nKillRingMax)
\r
85 m_nKillRingMax = nKillRingMax;
\r
88 int CData::GetKillRingMax()
\r
90 return m_nKillRingMax;
\r
93 int CData::GetSettingStyle()
\r
95 return m_nSettingStyle;
\r
98 void CData::SetSettingStyle(int nSettingStyle)
\r
100 m_nSettingStyle = nSettingStyle;
\r
103 void CData::SetIgnoreUndefinedMetaCtrl(BOOL bIgnoreUndefinedMetaCtrl)
\r
105 m_bIgnoreUndefinedMetaCtrl = bIgnoreUndefinedMetaCtrl;
\r
108 BOOL CData::GetIgnoreUndefinedMetaCtrl()
\r
110 return m_bIgnoreUndefinedMetaCtrl;
\r
113 void CData::SetIgnoreUndefinedC_x(BOOL bIgnoreUndefinedC_x)
\r
115 m_bIgnoreUndefinedC_x = bIgnoreUndefinedC_x;
\r
118 BOOL CData::GetIgnoreUndefinedC_x()
\r
120 return m_bIgnoreUndefinedC_x;
\r
123 void CData::SetEnableCUA(BOOL bEnableCUA)
\r
125 m_bEnableCUA = bEnableCUA;
\r
128 BOOL CData::GetEnableCUA()
\r
130 return m_bEnableCUA;
\r
133 void CData::SetUseDialogSetting(BOOL bUseDialogSetting)
\r
135 m_bUseDialogSetting = bUseDialogSetting;
\r
138 BOOL CData::GetUseDialogSetting()
\r
140 return m_bUseDialogSetting;
\r
143 BOOL CData::Get326Compatible()
\r
145 return m_b326Compatible;
\r
148 void CData::Set326Compatible(BOOL b326Compatible)
\r
150 m_b326Compatible = b326Compatible;
\r