I created a "toolbar" by the following code
Code: Select all
hToolBar = CreateWindowEx(WS_EX_TOOLWINDOW OR WS_EX_CLIENTEDGE, _
TOOLBARCLASSNAME, "", _
WS_CHILD OR WS_VISIBLE, _
0, 0, 0, 0, SYSTEM_HWnd_Window_Main, _
null, null, null)
...........
I used the standard icons
Code: Select all
STD_FILEOPEN, STD_FILENEW, STD_FILESAVE, STD_CUT
STD_COPY, STD_PASTE, STD_DELETE, STD_FIND
STD_REPLACE, STD_UNDO, STD_REDOW, STD_PRINT, STD_PROPERTIES
Now I would like to use directly icons in resources of this kind
Code: Select all
#define icon_applic 100
#define toolbar_openproject 101
#define toolbar_saveproject 104
#define toolbar_savefile 110
icon_applic ICON DISCARDABLE "T:/PROJET/interface/darius.ico"
toolbar_openproject ICON DISCARDABLE "T:/PROJET/interface/toolbar_openproject.ico"
toolbar_saveproject ICON DISCARDABLE "T:/PROJET/interface/toolbar_saveproject.ico"
toolbar_savefile ICON DISCARDABLE "T:/PROJET/interface/toolbar_savefile.ico"
I looked in the microsoft doc and apparently it is possible but I did not get there with
Code: Select all
TB_ADDBITMAP and TBBUTTON
Either I have looked for it or there is no such example.
One of you has experienced it.
thank you in advance