或许对你有用!<br>procedure TPhoenixForm.FormCreate(Sender: TObject);<br>var<br> Sav:LongInt;<br> wndHandle:THandle;<br> wndClass:array[0..50] of Char;<br>begin<br> //隐藏任务栏<br> StrCopy(@wndClass[0],'Shell_Tray Wnd');<br> wndHandle:=FindWindow(@wndClass[0],nil);<br> ShowWindow(wndHandle,SW_HIDE);<br> //隐藏标题栏<br> if BorderStyle=bsNone then<br> begin<br> Exit;<br> end;<br> Sav:=GetWindowLong(Handle,GWL_STYLE);<br> if (Sav and WS_CAPTION)=WS_CAPTION then<br> begin<br> case BorderStyle of<br> bsSingle,<br> bsSizeable:SetWindowLong(Handle,GWL_STYLE,Sav and (Not(WS_CAPTION)) or WS_BORDER) ;<br> bsDialog:SetWindowLong(Handle,GWL_STYLE,Sav and (Not(WS_CAPTION)) or DS_MODALFRAME or WS_DLGFRAME);<br> end;<br> Height:=Height-GetSystemMetrics(SM_CYCAPTION); //高度减去正常的标题栏的高度<br> Refresh; //GetSystemMetrics方法得到不同的系统结构设置<br> end;<br> Brush.Style:=bsClear; //隐藏背景,使窗体变成透明<br> Inherited;<br>end;