| 282 | } |
| 283 | |
| 284 | bool SettingsAppMessageHandler::updateAuthorizationKey() |
| 285 | { |
| 286 | // we're not searching by classname because that's generated by wxWidgets, |
| 287 | // and might change in the future |
| 288 | HWND btSettings = FindWindowEx(NULL, NULL, NULL, L"BumpTop Settings"); |
| 289 | LRESULT result = 0; |
| 290 | if (btSettings != NULL) |
| 291 | { |
| 292 | BringWindowToTop(btSettings); |
| 293 | result = ::PostMessage(btSettings, AuthorizationDialogClose, 0, 0); |
| 294 | } |
| 295 | return (result > 0); |
| 296 | } |
| 297 | |
| 298 |