MCPcopy Create free account
hub / github.com/WinMerge/winmerge / SaveListView

Function SaveListView

Src/PropShell.cpp:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189static void SaveListView(CListCtrl& list)
190{
191 CRegKeyEx reg;
192 MergeCmdLineInfo::usertasksflags_t dwFlags = 0;
193 reg.Open(HKEY_CURRENT_USER, RegDir);
194 int itemCount = list.GetItemCount();
195 for (int i = 0; i < itemCount; ++i)
196 dwFlags |= list.GetCheck(i) ? list.GetItemData(i) : 0;
197 if (dwFlags != reg.ReadDword(f_RegValueUserTasksFlags, 0))
198 {
199 reg.WriteDword(f_RegValueUserTasksFlags, dwFlags);
200 JumpList::AddUserTasks(CMergeApp::CreateUserTasks(dwFlags));
201 }
202}
203
204PropShell::PropShell(COptionsMgr *optionsMgr)
205: OptionsPanel(optionsMgr, PropShell::IDD)

Callers 1

WriteOptionsMethod · 0.85

Calls 6

AddUserTasksFunction · 0.85
GetItemDataMethod · 0.80
OpenMethod · 0.45
GetItemCountMethod · 0.45
ReadDwordMethod · 0.45
WriteDwordMethod · 0.45

Tested by

no test coverage detected