Running this code in Code::Blocks 20.03, got a #pragma comment(lib, "comctl32.lib") in my header, no joy. I know I need to add it to the linker, as do
#pragma comment(lib, "comctl32.lib")