Skip to content

Instantly share code, notes, and snippets.

@nibasya

nibasya/KCSSDlg.cpp

Created Aug 29, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.