Ok, I finally figured out a way to add menus dynamicaly to the menu bar (SHCreateMenuBar). It's a trick. You cannot create an EMPTYBAR with SHCreateMenuBar, it won't let you add anything to it after. You have to include a resource ID. What I did is, create a menubar resource with only one HIDDEN menu. Then you can AppendMenu from SHGetMenu without any problems.
I hope this will help so that person is not going to have to go through what I have been through.
Regards,
Kornalius.
Btw, thanx all for your help (they sorted lead me to the right solution after all) even if I couldn't get much answers.
