| 234 | } |
| 235 | |
| 236 | BOOL tryTrackPopupMenu( |
| 237 | __in HMENU hMenu, |
| 238 | __in UINT uFlags, |
| 239 | __in int x, |
| 240 | __in int y, |
| 241 | __in int nReserved, |
| 242 | __in HWND hWnd, |
| 243 | __in_opt CONST RECT *prcRect) |
| 244 | { |
| 245 | __try |
| 246 | { |
| 247 | return TrackPopupMenu(hMenu, uFlags, x, y, nReserved, hWnd, prcRect); |
| 248 | } |
| 249 | __except(EXCEPTION_EXECUTE_HANDLER) |
| 250 | { |
| 251 | logger->logException(__FILE__, __LINE__, GetExceptionCode()); |
| 252 | return FALSE; |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | // Draws the explorer-style context menu to the screen |
| 257 | void ContextMenu::invokeMenu(HMENU menu, POINT pt, uint pos_flags) |
no test coverage detected