Hi Aurel,
for toolbar:
We just need to assign each button an ID (ID_FILE_NEW etc…) which is identical
to the IDs of the equivalent menu items. These buttons will generate WM_COMMAND
messages identical to the menu, so no extra processing is required! If we were
adding a button for a command that didn’t already have a menu item, we would
simply pick a new ID for it and add a handler to WM_COMMAND.