I guess I am lucky !! .. thanks very much but.. I put the code in the OnCreate() in the CFrameWnd derived class. It worked with the menu. For the title bar it became not functioning but still here, visible. Why is that? and again thank you --------------------------------- I just tried this now It worked when I made a call to SetWindowPos() but Why is that? k_dehairy