C
Nice, es hat gefunst wirklich herzlichen dank, das hat mich wirklich näher gebracht, und noch einen dank an ascharan der mir über icq geholfen hat
HWND CreateTB(HWND hWndParent, HINSTANCE hInst)
{
static int iNumBtns = 4,
iTBBtnWidth = 16,
iTBBtnHeight = 16,
iTBImgWidht = 16,
iTBImgHeight = 16;
HWND hWndTB;
TBBUTTON tbButton[ ] =
{
{0, 0, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0},
{1, 0, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0},
{2, 0, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0},
{3, 0, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0},
{0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0, 0},
};
hWndTB = CreateToolbarEx(hWndParent,
WS_CHILD | TBSTYLE_TOOLTIPS | TBSTYLE_FLAT,
0,
iNumBtns,
hInst,
IDB_STANDARD,
tbButton,
sizeof(tbButton)/sizeof(TBBUTTON),
iTBBtnWidth, iTBBtnHeight,
iTBImgWidht, iTBImgHeight,
sizeof(TBBUTTON));
ShowWindow(hWndTB, SW_SHOW);
return hWndTB;
}
Code stelle ich mal rein für leute die ähnliche Probs haben
lg c4f