This is just for the sake of perfection, but my program runs in the system tray and if you double click it, the main dialog will come up and it should when you right click it (when the mouse button is down not when it comes up) it should display a menu. But my problem is when the dialog is visible and you right-click it and for a split second the menu would come-up and then disappear again. I've tried setting the Dialogs owner to nidata.uicallback message handler it works but you can't minimize it and no tab comes up on th task tray. I haven't tried a dummy window and don't know how to make one.
if anybody knows how to make a dummy window that does'nt get displayed please reply.