Created
August 29, 2018 10:26
-
-
Save nibasya/4ebf951cb429e8a6fc482f2dc5f980ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LRESULT CKCSSDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) | |
{ | |
if (message == WM_SETCURSOR) { | |
if (HIWORD(lParam) == WM_RBUTTONUP) { | |
CPoint p; | |
GetCursorPos(&p); | |
ScreenToClient(&p); | |
ShowPopupMenu(p); | |
} | |
} | |
return CDialogEx::WindowProc(message, wParam, lParam); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment