{ $Id$} { ***************************************************************************** * Win32WSForms.pp * * --------------- * * * * * ***************************************************************************** ***************************************************************************** * * * This file is part of the Lazarus Component Library (LCL) * * * * See the file COPYING.LCL, included in this distribution, * * for details about the copyright. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * * ***************************************************************************** } unit Win32WSForms; {$mode objfpc}{$H+} interface uses //////////////////////////////////////////////////// // I M P O R T A N T //////////////////////////////////////////////////// // To get as little as posible circles, // uncomment only when needed for registration //////////////////////////////////////////////////// Forms, //////////////////////////////////////////////////// WSForms, WSLCLClasses, Windows, SysUtils, WinExt; type { TWin32WSScrollingWinControl } TWin32WSScrollingWinControl = class(TWSScrollingWinControl) private protected public end; { TWin32WSScrollBox } TWin32WSScrollBox = class(TWSScrollBox) private protected public end; { TWin32WSCustomFrame } TWin32WSCustomFrame = class(TWSCustomFrame) private protected public end; { TWin32WSFrame } TWin32WSFrame = class(TWSFrame) private protected public end; { TWin32WSCustomForm } TWin32WSCustomForm = class(TWSCustomForm) private protected public class procedure SetIcon(const AForm: TCustomForm; const AIcon: HICON); override; class procedure ShowModal(const ACustomForm: TCustomForm); override; end; { TWin32WSForm } TWin32WSForm = class(TWSForm) private protected public end; { TWin32WSHintWindow } TWin32WSHintWindow = class(TWSHintWindow) private protected public end; { TWin32WSScreen } TWin32WSScreen = class(TWSScreen) private protected public end; { TWin32WSApplicationProperties } TWin32WSApplicationProperties = class(TWSApplicationProperties) private protected public end; implementation {----------------------------------------------------------------------------- Function: DisableWindowsProc Params: Window - handle of toplevel windows to be disabled Data - handle of current window form Returns: Whether the enumeration should continue Used in LM_SHOWMODAL to disable the windows of application thread except the current form. -----------------------------------------------------------------------------} function DisableWindowsProc(Window: HWND; Data: LParam): LongBool; stdcall; var Buffer: array[0..15] of Char; begin Result:=true; // Don't disable the current window form if Window=HWND(Data) then exit; // Don't disable any ComboBox listboxes if (GetClassName(Window, @Buffer, sizeof(Buffer))