[Overview][Procedures and functions][Index] Reference for unit 'LCLIntf' (#lcl)

SetWindowRgn

Defines the visible region of a window or control

Declaration

Source position: winapih.inc line 267

function SetWindowRgn(

  hWnd: HWND;

  hRgn: HRGN;

  bRedraw: Boolean

):LongInt;

Description

This function sets the visible region of a window or control. It's parameters are: hWnd - The handle of the window or control hRgn - The handle to the region which contains the visible section of the window or control bRedraw - True if the control or window should be repainted following the call of this function, false otherwise See also the wiki documentation: http://wiki.lazarus.freepascal.org/LCL_Tips#Creating_a_non-rectangular_window_or_control

See also

TWinControl.SetShape

  

Specifies the (non-rectangular) shape of the widget.

LCLIntf.CreateRectRgn

  

Creates a rectangular region.

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads