MCPcopy Create free account
hub / github.com/csersoft/HWFW_GUI / UpdateView

Function UpdateView

HWFW_GUI/HWFW_GUI.cpp:173–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173int UpdateView()
174{
175 HTREEITEM htiLastItem;
176 TVINSERTSTRUCTW tvis;
177
178 if (HWNP_GetState() != -1) return -1;
179 CleanView();
180
181 ZeroMemory(&tvis, sizeof(TVINSERTSTRUCTW));
182 tvis.hParent = TVI_ROOT;
183 tvis.hInsertAfter = TVI_LAST;
184 tvis.item.mask = TVIF_TEXT | TVIF_PARAM;
185
186 tvis.item.pszText = _T("<固件文件头部>");
187 tvis.item.lParam = (LPARAM)TT_FILEHDR;
188 htiLastItem = TreeView_DlgInsertItemW(hMainDlg, IDC_TV, &tvis);
189
190 tvis.item.pszText = _T("<型号支持信息>");
191 tvis.item.lParam = (LPARAM)TT_MODELINFO;
192 htiLastItem = TreeView_DlgInsertItemW(hMainDlg, IDC_TV, &tvis);
193
194 tvis.item.pszText = _T("<包含项目信息>");
195 tvis.item.lParam = (LPARAM)TT_ITEMINFO;
196 htiLastItem = TreeView_DlgInsertItemW(hMainDlg, IDC_TV, &tvis);
197
198 TreeView_DlgSetItemW(hMainDlg, IDC_TV, htiLastItem);
199
200 return 0;
201}
202
203void OpenFirmware(LPCWSTR lpPath)
204{

Callers 1

OpenFirmwareFunction · 0.70

Calls 2

HWNP_GetStateFunction · 0.85
CleanViewFunction · 0.85

Tested by

no test coverage detected