mirror of
https://github.com/WindowsNT351/CE-Collections.git
synced 2025-12-27 09:30:26 +08:00
201C101
This commit is contained in:
parent
628838bdf4
commit
a0a71f9d81
@ -81,16 +81,21 @@ BOOL Cmenu2Dlg::OnInitDialog()
|
|||||||
|
|
||||||
SetWindowLong(m_hWnd, GWL_STYLE, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
|
SetWindowLong(m_hWnd, GWL_STYLE, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
|
||||||
|
|
||||||
treeStr[0] = m_tree.InsertItem(L"Windows CE", 1, 0, TVI_ROOT);
|
//treeStr[0] = m_tree.InsertItem(L"Windows CE", 1, 0, TVI_ROOT);
|
||||||
for (int i = 1; i < 255; i++)
|
int iNodeNum = GetPrivateProfileInt(L"0", L"nodeNum", 255, lpPath);
|
||||||
|
for (int i = 0; i < iNodeNum; i++)
|
||||||
{
|
{
|
||||||
TCHAR iniCBuffer[255] = { 0 };
|
TCHAR iniCBuffer[255] = { 0 };
|
||||||
wsprintf(iniCBuffer, L"%d", i);
|
wsprintf(iniCBuffer, L"%d", i);
|
||||||
int currentFat = GetPrivateProfileInt(iniCBuffer, L"fat", -1, lpPath);
|
int currentFat = GetPrivateProfileInt(iniCBuffer, L"fat", -1, lpPath);
|
||||||
if (currentFat == -1)
|
if (currentFat == -1)
|
||||||
break;
|
continue;//201C101
|
||||||
|
|
||||||
TCHAR currentName[255] = { 0 };
|
TCHAR currentName[255] = { 0 };
|
||||||
GetPrivateProfileString(iniCBuffer, L"name", NULL, currentName, 255, lpPath);
|
GetPrivateProfileString(iniCBuffer, L"name", NULL, currentName, 255, lpPath);
|
||||||
|
if (currentFat == -2)
|
||||||
|
treeStr[0] = m_tree.InsertItem(currentName, 1, 0, TVI_ROOT);
|
||||||
|
else
|
||||||
treeStr[i] = m_tree.InsertItem(currentName, 1, 0, treeStr[currentFat]);
|
treeStr[i] = m_tree.InsertItem(currentName, 1, 0, treeStr[currentFat]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user