OK, I have found this new thing;
If I draw my own control, lets say a ReBar using CreateWindowEx, there is one parameter hMenu.
So I made a menu with CreatePopupMenu and I got the hMenu, I made some items in it With AppendMenu and I referred the hMenu in the CreateWindowEx, but nothing is happening. It was just a simple guess to do it this way, but if anyone knows if it can be done this way and that I just made a mistake, or if anyone knows another way, please tell me!
LuCkY