I found a sorta fix. It is only drawing after I make it call a WM_SIZE message(through changing the size of the window). Is there any way I can request a WM_SIZE message? I thought about SendMessage but I don't know the height and width of the window. Also it only drew a line in the middle of the screen. It appears that maybe the rectangles are gigantic but I can not figure out why they would be so big.

Thanks for all your help.