| 142 | } |
| 143 | |
| 144 | BOOL 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 | |
| 176 | BOOL CCryptPropertySheet::OnCommand(WPARAM wParam, LPARAM lParam) |
nothing calls this directly
no test coverage detected