procedure DisplayControlGrid(DC: HDC); var w: Integer; h: Integer; begin SetPixel(DC, 0, 0, RGB(0, 0, 0)); SetPixel(DC, 1, 0, RGB(0, 0, 0)); SetPixel(DC, 1, 10, RGB(0, 0, 0)); SetPixel(DC, 0, 12, RGB(0, 0, 0)); SetPixel(DC, 1, 12, RGB(0, 0, 0)); SetPixel(DC, 1, 14, RGB(0, 0, 0)); SetPixel(DC, 0, 24, RGB(0, 0, 0)); SetPixel(DC, 1, 24, RGB(0, 0, 0)); for h := 0 to (iSpecHeight - 3) do if not Odd(h) then SetPixel(DC, 2, h, RGB(0, 0, 0)); for h := 0 to (iSpecHeight - 3) do if not Odd(h) then SetPixel(DC, iSpecWidth - 3, h, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 1, 0, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 2, 0, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 2, 10, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 1, 12, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 2, 12, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 2, 14, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 1, 24, RGB(0, 0, 0)); SetPixel(DC, iSpecWidth - 2, 24, RGB(0, 0, 0)); for w := 2 to (iSpecWidth - 3) do if not Odd(w) then SetPixel(DC, w, iSpecHeight - 3, RGB(0, 0, 0)); SetPixel(DC, 10, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 10, iSpecHeight - 1, RGB(0, 0, 0)); SetPixel(DC, 18, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 26, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 34, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 44, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 44, iSpecHeight - 1, RGB(0, 0, 0)); SetPixel(DC, 54, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 62, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 70, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 78, iSpecHeight - 2, RGB(0, 0, 0)); SetPixel(DC, 78, iSpecHeight - 1, RGB(0, 0, 0)); end; |