NOW IT IS GOOD
Here is my code
extern HINSTANCE hInstance ;
#define NUMBER_OF_ICONS 16
#define NUMBER_OF_BUTTONS 23
typedef unsigned long long QWORD ;
HWND hToolbar ;
HIMAGELIST hImageList ;
typedef struct _MYTBBUTTON
{
int iBitmap ;
int idCommand ;
BYTE fsState ;
BYTE fsStyle ;
BYTE bReserved[2] ;
QWORD dwData ;
QWORD dwString ;
} MYTBBUTTON, *LPMYTBBUTTON ;
MYTBBUTTON tbButtons[23] = {
{ 0,IDM_ACTION_FILTERS, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,0,IDS_ACTION_FILTERS},
{10,IDM_ACTION_FIND, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,1,IDS_ACTION_FIND},
{ 7,IDM_ACTION_REFRESH, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,2,IDS_ACTION_REFRESH},
{ 9,IDM_ACTION_SAVE, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,3,IDS_ACTION_SAVE},
{ 0,0, 0, TBSTYLE_SEP ,0,0},
{ 1,IDM_WINDOW_VIEW, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,4,IDS_WINDOW_VIEW},
{ 6,IDM_WINDOW_DUMP, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,4,IDS_WINDOW_DUMP},
{14,IDM_WINDOW_DSM, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,4,IDS_WINDOW_DSM},
{ 0,0, 0, TBSTYLE_SEP ,0,0},
{ 5,IDM_FUNCTIONS_EXPORT,TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,5,IDS_FUNCTIONS_EXPORT},
{ 4,IDM_FUNCTIONS_IMPORT,TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,6,IDS_FUNCTIONS_IMPORT},
{ 0,0, 0 ,TBSTYLE_SEP,0,0},
{12,IDM_HOOK_AFTER, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,7,IDS_HOOK_AFTER},
{11,IDM_HOOK_BEFORE, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,8,IDS_HOOK_BEFORE},
{ 0,0, 0, TBSTYLE_SEP ,0,0},
{ 2,IDM_HOOK_FUNCTIONS, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,9,IDS_HOOK_FUNCTIONS},
{ 3,IDM_HOOK_MESSAGES, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,10,IDS_HOOK_MESSAGES},
{ 0,0, 0, TBSTYLE_SEP ,0,0},
{ 8,IDM_ACTION_SETTINGS,TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,11,IDS_ACTION_SETTINGS},
{ 0,0, 0, TBSTYLE_SEP ,0,0},
{13,IDM_PGM_ABOUT, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,12,IDS_PGM_ABOUT},
{ 0,0, 0, TBSTYLE_SEP ,0,0},
{15,IDM_PGM_EXIT, TBSTATE_ENABLED,BTNS_AUTOSIZE|TBSTYLE_BUTTON,0,0,13,IDS_PGM_EXIT},
} ;
TBADDBITMAP TbAddBitmap = {NULL,IDB_TOOLBAR} ;
// __________________________________________________________________________________
// _______________________ CreateSimpleToolbar ______________________________________
// __________________________________________________________________________________
void CreateSimpleToolbar(HWND hParent)
{
hToolbar = CreateWindowEx(0,TOOLBARCLASSNAME,NULL,WS_CHILD|WS_VISIBLE|TBSTYLE_FLAT|TBSTYLE_TOOLTIPS|TBSTYLE_TRANSPARENT|TBSTYLE_WRAPABLE,0,0,500,500,hParent,(HMENU) IDC_TOOLBAR_01,hInstance,NULL) ;
TbAddBitmap.hInst = hInstance ;
SendMessage(hToolbar,TB_SETBITMAPSIZE,0,MAKELONG(32,32)) ;
SendMessage(hToolbar,TB_SETBUTTONSIZE,0,MAKELONG(34,34)) ;
SendMessage(hToolbar,TB_SETEXTENDEDSTYLE,0,(LPARAM) TBSTYLE_EX_DOUBLEBUFFER) ;
hImageList = ImageList_LoadImage(hInstance,MAKEINTRESOURCE(IDB_TOOLBAR),32,1,CLR_DEFAULT,IMAGE_BITMAP,LR_CREATEDIBSECTION|LR_DEFAULTSIZE|LR_LOADTRANSPARENT) ;
SendMessage(hToolbar,TB_SETIMAGELIST,1,(LPARAM) hImageList) ;
SendMessage(hToolbar,TB_BUTTONSTRUCTSIZE,(WPARAM) sizeof(TBBUTTON),0) ;
SendMessage(hToolbar,TB_ADDBUTTONS,NUMBER_OF_BUTTONS,(LPARAM) (LPTBBUTTON) tbButtons) ;
SendMessage(hToolbar,TB_AUTOSIZE,0,0) ;
return ;
}
The problem was made by the toolbar styles in the CreateWindowEx.
Thank You for your help.
Merci