I've managed to get the pop up menu in my program
however now I have to set commands to make it do things when I click on them.
here is my code
the code works correctly when i right click but when I try to change the color it wouldn't work its WGL based program. I am trying to get the couch to change the color.
mouse_y = LOWORD(lParam);
mouse_x = HIWORD(lParam);
hMenu = LoadMenu(GetModuleHandle(NULL),//Load Menu
hMenu = GetSubMenu(hMenu,0);//Get Sub Menu
point.x = LOWORD(lParam);//Get cursor Pos
point.y = HIWORD(lParam);
TrackPopupMenu(hMenu,TPM_LEFTALIGN | TPM_RIGHTBUTTON,
couch2.set_rgb(1.0, 0.0, 0.0);
I am thinkin hard