Ok, I don't get this. I'm trying to compile something with the current MinGW on WinXP using the SetWindowSubclass stuff, and I've been trying to figure out why it keeps ..........ing about "undefined reference to DefSubclassProc." I have the headers included, win version, etc. It ONLY complains about DefSubclassProc, NOT SetWindowSubclass, which makes even less sense. So I open libcomctl32.a in a hex editor. Low and behold, SetWindowSubclass exists, DefSubclassProc does NOT. It's in commctrl.h but not the actual library. WHAT GIVES!?