Bonjour,
Je n'arrive pas a mettre le texte de mes bontons en dessous l'icone ...
J'ai pourtant mis uniquement le style "TBSTYLE_FLAT"
Avec quel autre style faudrait il combiner ?
Une idée ?
Merci d'avance.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
hToolbar = CreateToolbarEx(hParent,	TBSTYLE_FLAT  | WS_CHILD,
		                       ID_TOOLBAR, NB_TOOLBAR_BTN,
		                       hInst,
		                       IDB_BITMAP4, (LPCTBBUTTON) &tbb, NB_TOOLBAR_BTN,
		                       16,16,16,16, sizeof(TBBUTTON));

    tbb[0].iBitmap = ID_TOOLBAR_BTN_1;
	tbb[0].idCommand=IDM_OUVRIR;
    tbb[0].fsState = TBSTATE_ENABLED;  
    tbb[0].fsStyle = TBSTYLE_AUTOSIZE, 
    tbb[0].dwData = 0;
    tbb[0].iString = SendMessage(hToolbar, TB_ADDSTRING, 0,(LPARAM)"Ouvrir");

    tbb[1].iBitmap = 0;
    tbb[1].idCommand = -1;
    tbb[1].fsState = 0;
    tbb[1].fsStyle = TBSTYLE_SEP;
    tbb[1].dwData = 0;
    tbb[1].iString = -1;