Example I made a few months ago while I was learning DirectX. Very well commented code to draw a multi colored triangle to the screen, great reference for those new to DirectX and Windows Programming