Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

FrameRect implementation for WInCE

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

patspiper

I am trying to implement FrameRect(DC: HDC; const ARect: TRect; hBr: HBRUSH) for WinCE via line drawing, and thus I have 2 questions:

- Since LineTo draws using the pen, and FrameRect specifies the brush, how can the brush color be retrieved so that a new pen is created with the brush color? Anyway, I already have a working implementation using FillRect (uses the brush).

- Just to confirm: Should the right vertical line have a Y ordinate of ARect.Right-1 instead of ARect.right?

Stephano

Reply by email