[lazarus] Non-visual component drawing
Micha Nelissen
M.Nelissen at student.tue.nl
Mon Oct 27 11:27:43 EST 2003
Mattias Gaertner wrote:
> On Mon, 27 Oct 2003 16:23:16 +0100
> Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
>>
>>On second thought, it does get executed, but GetDeviceSize is not
>>implemented for win32, because it is not possible to retrieve the size
>>of a device context given a specific handle. Please advise :(.
>
>
> Is it possible to find out, if a handle is a window and return the size?
The handle is a device context, an HDC. It is possible to find out the
size of a window, for example using GetWindowRect, but that function
wants an HWND, not an HDC.
> Otherwise return false.
The return value of GetDeviceSize isn't used (and the default
implementation returns false already).
Micha.
More information about the Lazarus
mailing list