I am using the winAPI tutorial by the forger and I have created an editing window above which I now wish to put a toolbar. I have tried to incorporate the code from the website into my program, the code I have put into the WindProc function under WM_CREATE is as follows:

I have included commctrl.h and linked to comctl32.lib in the linker options. All the ID's are defined ok and the program compiles with no errors. The problem is that when the program runs, there is a toolbar sitauted in the correct position but there are no buttons. The website also says that it is necessary to call InitCommonControls() before you can use common controls. I am not sure how to use this function so I simply put

InitCommonControls(); at the beginning of WinMain(). It compiles fine but still there are no buttons.

If anyone could shed some light on this problem I would be extremely grateful, thanks.