How would one handle right clicks on a specific control for example, if the user was to right click a static control and I would like to display a menu.. I thought that I could do something like this..
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) /* handle the messages */
{
case WM_COMMAND:
{
if (LOWORD(wParam) == MYCTRL)
{
if (HIWORD(wParam) == WM_RBUTTONDOWN)
{
// code here..
}
}
}
break;
}
}
but it doesnt seem to work
thanks.