Skip to content

Instantly share code, notes, and snippets.

@nibasya
Created August 29, 2018 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nibasya/4ebf951cb429e8a6fc482f2dc5f980ea to your computer and use it in GitHub Desktop.
Save nibasya/4ebf951cb429e8a6fc482f2dc5f980ea to your computer and use it in GitHub Desktop.
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