SOLVED
So i guess the iBitmap parameter of the TBBUTTON structure is supposed to be the index of the array, not the ID number. The examples I was using (from the Boling book) put the IDs there, which may work for many buttons. Since I just want one button to act as a System menu (until I figure out how to add one in the title bar in Windows CE), I changed the value to 0 and deleted the temporary dummy buttons.
Code:const TBBUTTON tbCBStdBtns[] = { // BitmapIndex Command State Style UserData String {0, IDC_SQUAREDSHIPPING, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0}, };




Reply With Quote