Oltre a quanto detto da MItaly aggiungo che almeno dovresti scrivere la for correttamente ...

codice:
       case WM_PAINT:
            hdc = BeginPaint(hwnd, &ps); 
            for(int i = 0; i < 100; i++)
               SetPixel(hdc, i, i, blueColor);
            EndPaint(hwnd, &ps); 
            break;