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

Method OnCommand

cppcryptfs/ui/CryptPropertySheet.cpp:176–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176BOOL 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
198BOOL CCryptPropertySheet::OnNcCreate(LPCREATESTRUCT lpCreateStruct)

Callers

nothing calls this directly

Calls 1

DefaultActionMethod · 0.45

Tested by

no test coverage detected