MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / OnInitDialog

Method OnInitDialog

cppcryptfs/ui/CryptPropertySheet.cpp:144–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144BOOL CCryptPropertySheet::OnInitDialog()
145{
146
147 BOOL bResult = CPropertySheet::OnInitDialog();
148
149 // TODO: Add your specialized code here
150
151 CWnd *pWnd;
152
153 pWnd = GetDlgItem(IDOK);
154
155 if (pWnd)
156 pWnd->ShowWindow(SW_HIDE);
157
158 pWnd = GetDlgItem(IDCANCEL);
159
160 if (pWnd)
161 pWnd->ShowWindow(SW_HIDE);
162
163 if (theApp.IsRunningAsAdministrator()) {
164
165 // We want to know if explorer gets restarted so we can re-create our system tray icon.
166 // However, if we're running as administrator, we never get any TaskbarCreated messages,
167 // so we need to poll using a timer.
168
169 SetTimer(kSysTrayiTimerId, kSysTrayTimerInterval, nullptr);
170 }
171
172 return bResult;
173}
174
175
176BOOL CCryptPropertySheet::OnCommand(WPARAM wParam, LPARAM lParam)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected