You've created the buttons without the necessary windows styles. From MSDN: Apply the following window styles to a button control: WS_CHILD Always WS_VISIBLE Usually WS_DISABLED Rarely WS_GROUP To group controls WS_TABSTOP To include the button in the tabbing order ...