Click here:
http://www.gamedev.net/reference/pro...res/gpgenesis1
It first teaches you how to program in windows, then you can go into different sections in the series of like 13 online books. It teaches everything from making your first window, to programing in DirectX.