mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 12:55:43 +00:00
[FORMATTING] Fix indentation
svn path=/trunk/; revision=32665
This commit is contained in:
parent
0d376b34fa
commit
374a272eac
3 changed files with 161 additions and 161 deletions
|
@ -18,97 +18,97 @@ static VOID
|
||||||
SelectLayoutByLang(VOID)
|
SelectLayoutByLang(VOID)
|
||||||
{
|
{
|
||||||
TCHAR Layout[MAX_PATH], Lang[MAX_PATH], LangID[MAX_PATH];
|
TCHAR Layout[MAX_PATH], Lang[MAX_PATH], LangID[MAX_PATH];
|
||||||
INT iIndex;
|
INT iIndex;
|
||||||
LCID Lcid;
|
LCID Lcid;
|
||||||
|
|
||||||
iIndex = SendMessage(hLangList, CB_GETCURSEL, 0, 0);
|
iIndex = SendMessage(hLangList, CB_GETCURSEL, 0, 0);
|
||||||
Lcid = SendMessage(hLangList, CB_GETITEMDATA, iIndex, 0);
|
Lcid = SendMessage(hLangList, CB_GETITEMDATA, iIndex, 0);
|
||||||
|
|
||||||
GetLocaleInfo(MAKELCID(Lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Lang, sizeof(Lang));
|
GetLocaleInfo(MAKELCID(Lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Lang, sizeof(Lang));
|
||||||
|
|
||||||
_stprintf(LangID, _T("0000%s"), Lang);
|
_stprintf(LangID, _T("0000%s"), Lang);
|
||||||
|
|
||||||
if (GetLayoutName(LangID, Layout))
|
if (GetLayoutName(LangID, Layout))
|
||||||
{
|
{
|
||||||
SendMessage(hLayoutList, CB_SELECTSTRING,
|
SendMessage(hLayoutList, CB_SELECTSTRING,
|
||||||
(WPARAM) -1, (LPARAM)Layout);
|
(WPARAM) -1, (LPARAM)Layout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
AddNewLayout(HWND hwndDlg)
|
AddNewLayout(HWND hwndDlg)
|
||||||
{
|
{
|
||||||
TCHAR Lang[MAX_PATH], LangID[MAX_PATH], LayoutID[MAX_PATH];
|
TCHAR Lang[MAX_PATH], LangID[MAX_PATH], LayoutID[MAX_PATH];
|
||||||
INT iLang, iLayout;
|
INT iLang, iLayout;
|
||||||
LCID Lcid;
|
LCID Lcid;
|
||||||
|
|
||||||
iLang = SendMessage(hLangList, CB_GETCURSEL, 0, 0);
|
iLang = SendMessage(hLangList, CB_GETCURSEL, 0, 0);
|
||||||
iLayout = SendMessage(hLayoutList, CB_GETCURSEL, 0, 0);
|
iLayout = SendMessage(hLayoutList, CB_GETCURSEL, 0, 0);
|
||||||
|
|
||||||
if ((iLang == CB_ERR) || (iLayout == CB_ERR)) return;
|
if ((iLang == CB_ERR) || (iLayout == CB_ERR)) return;
|
||||||
|
|
||||||
Lcid = (LCID) SendMessage(hLangList, CB_GETITEMDATA, iLang, 0);
|
Lcid = (LCID) SendMessage(hLangList, CB_GETITEMDATA, iLang, 0);
|
||||||
GetLocaleInfo(MAKELCID(Lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Lang, sizeof(Lang));
|
GetLocaleInfo(MAKELCID(Lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, (WORD*)Lang, sizeof(Lang));
|
||||||
_stprintf(LangID, _T("0000%s"), Lang);
|
_stprintf(LangID, _T("0000%s"), Lang);
|
||||||
|
|
||||||
_tcscpy(LayoutID, (LPTSTR)SendMessage(hLayoutList, CB_GETITEMDATA, iLayout, 0));
|
_tcscpy(LayoutID, (LPTSTR)SendMessage(hLayoutList, CB_GETITEMDATA, iLayout, 0));
|
||||||
|
|
||||||
if (_tcscmp(LangID, LayoutID) == 0)
|
if (_tcscmp(LangID, LayoutID) == 0)
|
||||||
{
|
{
|
||||||
MessageBox(0, L"", L"", MB_OK);
|
MessageBox(0, L"", L"", MB_OK);
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
|
|
||||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Preload"), 0, KEY_WRITE, &hKey))
|
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Preload"), 0, KEY_WRITE, &hKey))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
CreateKeyboardLayoutList(VOID)
|
CreateKeyboardLayoutList(VOID)
|
||||||
{
|
{
|
||||||
HKEY hKey, hSubKey;
|
HKEY hKey, hSubKey;
|
||||||
TCHAR szBuf[MAX_PATH], KeyName[MAX_PATH];
|
TCHAR szBuf[MAX_PATH], KeyName[MAX_PATH];
|
||||||
LONG Ret;
|
LONG Ret;
|
||||||
DWORD dwIndex = 0;
|
DWORD dwIndex = 0;
|
||||||
|
|
||||||
if (RegOpenKey(HKEY_LOCAL_MACHINE, _T("System\\CurrentControlSet\\Control\\Keyboard Layouts"), &hKey) == ERROR_SUCCESS)
|
if (RegOpenKey(HKEY_LOCAL_MACHINE, _T("System\\CurrentControlSet\\Control\\Keyboard Layouts"), &hKey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
Ret = RegEnumKey(hKey, dwIndex, szBuf, sizeof(szBuf) / sizeof(TCHAR));
|
Ret = RegEnumKey(hKey, dwIndex, szBuf, sizeof(szBuf) / sizeof(TCHAR));
|
||||||
if (Ret == ERROR_SUCCESS)
|
if (Ret == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
while (Ret == ERROR_SUCCESS)
|
while (Ret == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
_stprintf(KeyName, _T("System\\CurrentControlSet\\Control\\Keyboard Layouts\\%s"), szBuf);
|
_stprintf(KeyName, _T("System\\CurrentControlSet\\Control\\Keyboard Layouts\\%s"), szBuf);
|
||||||
if (RegOpenKey(HKEY_LOCAL_MACHINE, KeyName, &hSubKey) == ERROR_SUCCESS)
|
if (RegOpenKey(HKEY_LOCAL_MACHINE, KeyName, &hSubKey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
DWORD Length = MAX_PATH;
|
DWORD Length = MAX_PATH;
|
||||||
|
|
||||||
if (RegQueryValueEx(hSubKey, _T("Layout Text"), NULL, NULL, (LPBYTE)KeyName, &Length) == ERROR_SUCCESS)
|
if (RegQueryValueEx(hSubKey, _T("Layout Text"), NULL, NULL, (LPBYTE)KeyName, &Length) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
UINT iIndex;
|
UINT iIndex;
|
||||||
iIndex = (UINT) SendMessage(hLayoutList, CB_ADDSTRING, 0, (LPARAM)KeyName);
|
iIndex = (UINT) SendMessage(hLayoutList, CB_ADDSTRING, 0, (LPARAM)KeyName);
|
||||||
|
|
||||||
SendMessage(hLayoutList, CB_SETITEMDATA, iIndex, (LPARAM)szBuf);
|
SendMessage(hLayoutList, CB_SETITEMDATA, iIndex, (LPARAM)szBuf);
|
||||||
|
|
||||||
// FIXME!
|
// FIXME!
|
||||||
if (_tcscmp(szBuf, _T("00000409")) == 0)
|
if (_tcscmp(szBuf, _T("00000409")) == 0)
|
||||||
{
|
{
|
||||||
SendMessage(hLayoutList, CB_SELECTSTRING, (WPARAM) -1, (LPARAM)KeyName);
|
SendMessage(hLayoutList, CB_SELECTSTRING, (WPARAM) -1, (LPARAM)KeyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
dwIndex++;
|
dwIndex++;
|
||||||
Ret = RegEnumKey(hKey, dwIndex, szBuf, sizeof(szBuf) / sizeof(TCHAR));
|
Ret = RegEnumKey(hKey, dwIndex, szBuf, sizeof(szBuf) / sizeof(TCHAR));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RegCloseKey(hSubKey);
|
RegCloseKey(hSubKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Language enumerate procedure */
|
/* Language enumerate procedure */
|
||||||
|
@ -128,12 +128,12 @@ LanguagesEnumProc(LPTSTR lpLanguage)
|
||||||
SendMessage(hLangList, CB_SETITEMDATA,
|
SendMessage(hLangList, CB_SETITEMDATA,
|
||||||
Index, (LPARAM)Lcid);
|
Index, (LPARAM)Lcid);
|
||||||
|
|
||||||
// FIXME!
|
// FIXME!
|
||||||
if (Lcid == 0x0409)
|
if (Lcid == 0x0409)
|
||||||
{
|
{
|
||||||
SendMessage(hLangList, CB_SELECTSTRING,
|
SendMessage(hLangList, CB_SELECTSTRING,
|
||||||
(WPARAM) -1, (LPARAM)Lang);
|
(WPARAM) -1, (LPARAM)Lang);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -149,42 +149,42 @@ AddDlgProc(HWND hDlg,
|
||||||
switch (message)
|
switch (message)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
{
|
{
|
||||||
hLangList = GetDlgItem(hDlg, IDC_INPUT_LANG_COMBO);
|
hLangList = GetDlgItem(hDlg, IDC_INPUT_LANG_COMBO);
|
||||||
hLayoutList = GetDlgItem(hDlg, IDC_KEYBOARD_LO_COMBO);
|
hLayoutList = GetDlgItem(hDlg, IDC_KEYBOARD_LO_COMBO);
|
||||||
EnumSystemLocales(LanguagesEnumProc, LCID_INSTALLED);
|
EnumSystemLocales(LanguagesEnumProc, LCID_INSTALLED);
|
||||||
CreateKeyboardLayoutList();
|
CreateKeyboardLayoutList();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDC_INPUT_LANG_COMBO:
|
case IDC_INPUT_LANG_COMBO:
|
||||||
{
|
{
|
||||||
if (HIWORD(wParam) == CBN_SELCHANGE)
|
if (HIWORD(wParam) == CBN_SELCHANGE)
|
||||||
{
|
{
|
||||||
SelectLayoutByLang();
|
SelectLayoutByLang();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDOK:
|
case IDOK:
|
||||||
{
|
{
|
||||||
AddNewLayout(hDlg);
|
AddNewLayout(hDlg);
|
||||||
EndDialog(hDlg, LOWORD(wParam));
|
EndDialog(hDlg, LOWORD(wParam));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDCANCEL:
|
case IDCANCEL:
|
||||||
{
|
{
|
||||||
EndDialog(hDlg, LOWORD(wParam));
|
EndDialog(hDlg, LOWORD(wParam));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -37,7 +37,7 @@ HINSTANCE hApplet = 0;
|
||||||
/* Applets */
|
/* Applets */
|
||||||
APPLET Applets[NUM_APPLETS] =
|
APPLET Applets[NUM_APPLETS] =
|
||||||
{
|
{
|
||||||
{IDI_CPLSYSTEM, IDS_CPLSYSTEMNAME, IDS_CPLSYSTEMDESCRIPTION, SystemApplet}
|
{IDI_CPLSYSTEM, IDS_CPLSYSTEMNAME, IDS_CPLSYSTEMDESCRIPTION, SystemApplet}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
LANGID LangId;
|
LANGID LangId;
|
||||||
TCHAR LangName[MAX_PATH];
|
TCHAR LangName[MAX_PATH];
|
||||||
TCHAR LayoutName[MAX_PATH];
|
TCHAR LayoutName[MAX_PATH];
|
||||||
TCHAR ValName[MAX_PATH];
|
TCHAR ValName[MAX_PATH];
|
||||||
TCHAR IndName[MAX_PATH];
|
TCHAR IndName[MAX_PATH];
|
||||||
TCHAR SubName[MAX_PATH];
|
TCHAR SubName[MAX_PATH];
|
||||||
} LAYOUT_ITEM, *LPLAYOUT_ITEM;
|
} LAYOUT_ITEM, *LPLAYOUT_ITEM;
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
@ -50,7 +50,7 @@ AddListColumn(HWND hWnd)
|
||||||
{
|
{
|
||||||
LV_COLUMN column;
|
LV_COLUMN column;
|
||||||
TCHAR szBuf[MAX_PATH];
|
TCHAR szBuf[MAX_PATH];
|
||||||
HWND hList = GetDlgItem(hWnd, IDC_KEYLAYOUT_LIST);
|
HWND hList = GetDlgItem(hWnd, IDC_KEYLAYOUT_LIST);
|
||||||
|
|
||||||
ZeroMemory(&column, sizeof(LV_COLUMN));
|
ZeroMemory(&column, sizeof(LV_COLUMN));
|
||||||
column.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM;
|
column.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM;
|
||||||
|
@ -67,7 +67,7 @@ AddListColumn(HWND hWnd)
|
||||||
column.cx = 160;
|
column.cx = 160;
|
||||||
(VOID) ListView_InsertColumn(hList, 1, &column);
|
(VOID) ListView_InsertColumn(hList, 1, &column);
|
||||||
|
|
||||||
column.fmt = LVCFMT_RIGHT;
|
column.fmt = LVCFMT_RIGHT;
|
||||||
column.cx = 145;
|
column.cx = 145;
|
||||||
column.iSubItem = 2;
|
column.iSubItem = 2;
|
||||||
LoadString(hApplet, IDS_LAYOUT, szBuf, sizeof(szBuf) / sizeof(TCHAR));
|
LoadString(hApplet, IDS_LAYOUT, szBuf, sizeof(szBuf) / sizeof(TCHAR));
|
||||||
|
@ -78,88 +78,88 @@ AddListColumn(HWND hWnd)
|
||||||
static BOOL
|
static BOOL
|
||||||
InitLangList(HWND hWnd)
|
InitLangList(HWND hWnd)
|
||||||
{
|
{
|
||||||
HKEY hKey, hSubKey;
|
HKEY hKey, hSubKey;
|
||||||
TCHAR szBuf[MAX_PATH], szPreload[MAX_PATH], szSub[MAX_PATH];
|
TCHAR szBuf[MAX_PATH], szPreload[MAX_PATH], szSub[MAX_PATH];
|
||||||
LAYOUT_ITEM lItem;
|
LAYOUT_ITEM lItem;
|
||||||
AddListColumn(hWnd);
|
AddListColumn(hWnd);
|
||||||
LONG Ret;
|
LONG Ret;
|
||||||
DWORD dwIndex = 0, dwType, dwSize;
|
DWORD dwIndex = 0, dwType, dwSize;
|
||||||
LV_ITEM item;
|
LV_ITEM item;
|
||||||
HWND hList = GetDlgItem(hWnd, IDC_KEYLAYOUT_LIST);
|
HWND hList = GetDlgItem(hWnd, IDC_KEYLAYOUT_LIST);
|
||||||
|
|
||||||
(VOID) ListView_SetExtendedListViewStyle(hList, LVS_EX_FULLROWSELECT);
|
(VOID) ListView_SetExtendedListViewStyle(hList, LVS_EX_FULLROWSELECT);
|
||||||
|
|
||||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Preload"),
|
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Preload"),
|
||||||
0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
|
0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
dwSize = MAX_PATH;
|
dwSize = MAX_PATH;
|
||||||
Ret = RegEnumValue(hKey, dwIndex, szBuf, &dwSize, NULL, &dwType, NULL, NULL);
|
Ret = RegEnumValue(hKey, dwIndex, szBuf, &dwSize, NULL, &dwType, NULL, NULL);
|
||||||
if (Ret == ERROR_SUCCESS)
|
if (Ret == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
while (Ret == ERROR_SUCCESS)
|
while (Ret == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
_tcscpy(lItem.ValName, szBuf);
|
_tcscpy(lItem.ValName, szBuf);
|
||||||
|
|
||||||
dwSize = MAX_PATH;
|
dwSize = MAX_PATH;
|
||||||
RegQueryValueEx(hKey, szBuf, NULL, NULL, (LPBYTE)szPreload, &dwSize);
|
RegQueryValueEx(hKey, szBuf, NULL, NULL, (LPBYTE)szPreload, &dwSize);
|
||||||
|
|
||||||
lItem.LangId = _tcstoul(szPreload, NULL, 16);
|
lItem.LangId = _tcstoul(szPreload, NULL, 16);
|
||||||
|
|
||||||
GetLocaleInfo(lItem.LangId, LOCALE_SISO639LANGNAME, (LPTSTR) szBuf, sizeof(szBuf));
|
GetLocaleInfo(lItem.LangId, LOCALE_SISO639LANGNAME, (LPTSTR) szBuf, sizeof(szBuf));
|
||||||
_tcscpy(lItem.IndName, _tcsupr(szBuf));
|
_tcscpy(lItem.IndName, _tcsupr(szBuf));
|
||||||
|
|
||||||
GetLocaleInfo(lItem.LangId, LOCALE_SLANGUAGE, (LPTSTR)szBuf, sizeof(szBuf));
|
GetLocaleInfo(lItem.LangId, LOCALE_SLANGUAGE, (LPTSTR)szBuf, sizeof(szBuf));
|
||||||
_tcscpy(lItem.LangName, szBuf);
|
_tcscpy(lItem.LangName, szBuf);
|
||||||
|
|
||||||
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Substitutes"),
|
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Substitutes"),
|
||||||
0, KEY_QUERY_VALUE, &hSubKey) == ERROR_SUCCESS)
|
0, KEY_QUERY_VALUE, &hSubKey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
dwSize = MAX_PATH;
|
dwSize = MAX_PATH;
|
||||||
if (RegQueryValueEx(hSubKey, szPreload, NULL, NULL, (LPBYTE)szSub, &dwSize) == ERROR_SUCCESS)
|
if (RegQueryValueEx(hSubKey, szPreload, NULL, NULL, (LPBYTE)szSub, &dwSize) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
_tcscpy(lItem.SubName, szPreload);
|
_tcscpy(lItem.SubName, szPreload);
|
||||||
if (GetLayoutName(szSub, szBuf))
|
if (GetLayoutName(szSub, szBuf))
|
||||||
{
|
{
|
||||||
_tcscpy(lItem.LayoutName, szBuf);
|
_tcscpy(lItem.LayoutName, szBuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_tcscpy(lItem.SubName, _T(""));
|
_tcscpy(lItem.SubName, _T(""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_tcslen(lItem.SubName) < 2)
|
if (_tcslen(lItem.SubName) < 2)
|
||||||
{
|
{
|
||||||
if (GetLayoutName(szPreload, szBuf))
|
if (GetLayoutName(szPreload, szBuf))
|
||||||
{
|
{
|
||||||
_tcscpy(lItem.LayoutName, szBuf);
|
_tcscpy(lItem.LayoutName, szBuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ZeroMemory(&item, sizeof(LV_ITEM));
|
ZeroMemory(&item, sizeof(LV_ITEM));
|
||||||
item.mask = LVIF_TEXT | LVIF_PARAM | LVIF_STATE;
|
item.mask = LVIF_TEXT | LVIF_PARAM | LVIF_STATE;
|
||||||
item.pszText = lItem.IndName;
|
item.pszText = lItem.IndName;
|
||||||
item.lParam = (LPARAM)&lItem;
|
item.lParam = (LPARAM)&lItem;
|
||||||
item.iItem = (INT) dwIndex;
|
item.iItem = (INT) dwIndex;
|
||||||
INT i = ListView_InsertItem(hList, &item);
|
INT i = ListView_InsertItem(hList, &item);
|
||||||
|
|
||||||
ListView_SetItemText(hList, i, 1, lItem.LangName);
|
ListView_SetItemText(hList, i, 1, lItem.LangName);
|
||||||
ListView_SetItemText(hList, i, 2, lItem.LayoutName);
|
ListView_SetItemText(hList, i, 2, lItem.LayoutName);
|
||||||
|
|
||||||
dwIndex++;
|
dwIndex++;
|
||||||
Ret = RegEnumValue(hKey, dwIndex, szBuf, &dwSize, NULL, &dwType, NULL, NULL);
|
Ret = RegEnumValue(hKey, dwIndex, szBuf, &dwSize, NULL, &dwType, NULL, NULL);
|
||||||
RegCloseKey(hSubKey);
|
RegCloseKey(hSubKey);
|
||||||
|
|
||||||
if (_tcscmp(lItem.ValName, _T("1")) == 0)
|
if (_tcscmp(lItem.ValName, _T("1")) == 0)
|
||||||
{
|
{
|
||||||
(VOID) ListView_SetHotItem(hList, i);
|
(VOID) ListView_SetHotItem(hList, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue