Without showing what you have, it's hard to explain without
posting 200+ lines of code. You should have a basic application
set up. It should display a window. If you are lacking this,
look for Sunlights tutorial on www.cprogramming.com.
Somewhere in your program, there should be a messageloop.
Code:
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch( message )
{
case WM_COMMAND:
...
default:
return DefWindowProc( hWnd, message, wParam, lParam );
}
}
In there you have to add another case label
for WM_RBUTTONDOWN like this:
case WM_RBUTTONDOWN:
// do your displaying here
break;
that should lead to your displaying being done whenever
someone presses the right mousebutton in your window.