IDB_BGGBTN_GRAY is defined in my resource editor (VC++)Code:TBBUTTON tbb[1]; TBADDBITMAP tbab; tbab.hInst = HINST_COMMCTRL; tbab.nID = IDB_STD_SMALL_COLOR; SendMessage(mainTB, TB_ADDBITMAP, 0, (LPARAM)&tbab); ZeroMemory(tbb, sizeof(tbb)); tbb[0].iBitmap = IDB_BGGBTN_GRAY; //this line for my button image (i think) tbb[0].fsState = TBSTATE_ENABLED; tbb[0].fsStyle = TBSTYLE_BUTTON; tbb[0].idCommand = MAINTB_MAINMENU;
I added the file into my resources file, and named it IDB_BGGBTN_GRAY
but it doesn't show...
Does anyone know why?
Thanks




Reply With Quote