| 3155 | } |
| 3156 | |
| 3157 | void CColorCopDlg::FireOptionMenu() { |
| 3158 | // Pop up the system menu when a user hits SHIFT + F10 (right click equivalent) |
| 3159 | // suggested by that dude from PC Mag |
| 3160 | |
| 3161 | CPoint targetp = {0, 0}; |
| 3162 | |
| 3163 | CMenu tempMenu; |
| 3164 | tempMenu.LoadMenu(IDR_COPMENU); |
| 3165 | |
| 3166 | ClientToScreen(&targetp); |
| 3167 | CMenu* pPopup = tempMenu.GetSubMenu(0); |
| 3168 | pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, |
| 3169 | targetp.x, targetp.y, this, NULL); |
| 3170 | } |
| 3171 | |
| 3172 | |
| 3173 | PBITMAPINFO CColorCopDlg::CreateBitmapInfoStruct(HWND /*hwnd*/, HBITMAP hBmp) { |
nothing calls this directly
no outgoing calls
no test coverage detected