With a layer selected, you create masks, that cut the layer. Only when no layer is selected, a shape layer is created, which is what you are looking for. Masks have no strokes or fills, shape layers do. See the online help for more details: Drawing, painting and paths.
Thanks a lot man, I got confused