Small icon problem

This is a discussion on Small icon problem within the Windows Programming forums, part of the Platform Specific Boards category; I'm making a program in DEV-C++ and the small icon is not appearing in the title bar of the window. ...

Small icon problem

I'm making a program in DEV-C++ and the small icon is not appearing in the title bar of the window. It appears everywhere else (taskbar, Explorer, desktop), so why doesn't it appear in the window itself? Do I have to do something special?

I thought all I had to do was attach the icons to the window class like this: