| 174 | |
| 175 | |
| 176 | BOOL CCryptPropertySheet::OnCommand(WPARAM wParam, LPARAM lParam) |
| 177 | { |
| 178 | // TODO: Add your specialized code here and/or call the base class |
| 179 | |
| 180 | CCryptPropertyPage *page = NULL; |
| 181 | |
| 182 | switch (wParam & 0xffff) { // prevent pressing ENTER or ESC from closing dialog |
| 183 | case IDOK: |
| 184 | page = (CCryptPropertyPage*)GetActivePage(); |
| 185 | if (page) { |
| 186 | page->DefaultAction(); |
| 187 | } |
| 188 | return 1; |
| 189 | case IDCANCEL: |
| 190 | return 1; |
| 191 | default: |
| 192 | break; |
| 193 | } |
| 194 | return CPropertySheet::OnCommand(wParam, lParam); |
| 195 | } |
| 196 | |
| 197 | |
| 198 | BOOL CCryptPropertySheet::OnNcCreate(LPCREATESTRUCT lpCreateStruct) |
nothing calls this directly
no test coverage detected