hab den code:
Delphi-Quellcode:
unit Unit1;
interface
uses
Windows, Classes, Controls, Forms, StdCtrls;
type
TForm1 =
class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
procedure CreateParams(
var Params: TCreateParams);
override;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.CreateParams(
var Params: TCreateParams);
begin
// inherited first!
inherited CreateParams(Params);
// only for testing purposes...
if (Params.WndParent = Application.Handle)
then
begin
// child window of the desktop window
Params.WndParent := GetDesktopWindow();
Params.Style := Params.Style
or WS_CHILD;
end;
end;
end.
der button is unklickable
Das echte Leben ist was für Leute...
... die im Internet keine Freunde finden!