Context Menu makes parent window stop working

Hi,
My context menu is working fine, but I want the parent window to keep running (animating) while the context menu is in the focus. Do I have to make another window to make this work?

I am handling the WM_CONTEXTMENU message, its working quite well until the parent window stops working. So I guess the actual menu is taking the focus away from the parent window?

When I right click on the parent window I have a context menu with options that the user can press. But I want this window to run or animate while this context menu is active, how can I make this happen?

This is the actual function in the WM_CONTEXTMENU message:

TrackPopupMenu(hMenu, TPM_CENTERALIGN | TPM_LEFTBUTTON | TPM_NOANIMATION | TPM_NONOTIFY | TPM_RETURNCMD, GET_X_LPARAM(msg.lParam), GET_Y_LPARAM(msg.lParam), NULL, hwnd, NULL);

I tried to use GetDesktopWindow as the hwnd instead of the parent hwnd in this function but this would not work (i.e. the context menu would not show up then).

Thanks
Topic archived. No new replies allowed.