就象有些软件,界面与普通DELPHI开发的程序窗口完全不一样
解决方案 »
- symbol was eliminated by linker是怎么回事?
- 为孩子起名
- 为什么咱们圈里的兄弟老是失恋?
- 关于line控件
- 怎么设置ADOQuery控件为查询状态?
- 提问,现在需要对用户打开的模块进行审计,每次打开一个模块,就插入一条记录
- type TFieldOrder = set of Integer 怎么会出错,要怎么写
- delphi
- 我使用的是六键鼠标,请问各位大侠,怎样截获鼠标第四键发出的消息呢?
- 怎么用sql语句按照每个小时用group by 汇总数据?
- [我只有10分了]超级难题!!!我用MySQL3.32.21b,其中有个表a要经常写数据进去,当数据到一定量,数据表就只能读不能写,怎么办啊?
- 请问哪里可以下载TAPI的TApdSModem控件?
重画标题栏
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
private
{ Private declarations }
procedure WMNCPAint(var Mes : TWMNCPaint); message WM_NCPAINT;
procedure WMNCACTIVE(var msg: TMessage); message WM_NCACTIVATE;procedure Paint_Caption; public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.DFM}
var
State:Integer;procedure TForm1.WMNCPAint(var Mes : TWMNCPaint);
begin
inherited;
Paint_Caption;
end;procedure TForm1.Paint_Caption;
var
ACanvas : TCanvas;
begin ACanvas := TCanvas.Create;
try
ACanvas.Handle := GetWindowDC(Form1.Handle);
with ACanvas do begin
if State=1 then
Brush.Color := clActiveCaption
else
Brush.Color := clInactiveCaption; Font.Name := 'Times New Roman';
Font.Size := 12;
Font.Color := clYellow;
Font.Style := [fsBold]; TextOut(GetSystemMetrics(SM_CYMENU) + GetSystemMetrics(SM_CXBORDER),
Round((GetSystemMetrics(SM_CYCAPTION) - Abs(Font.Height))/2) +1,
'千堆雪最近不常来了');
////////////////////////////////////////////////////////////////////////////////
end;
finally
ReleaseDC(Form1.Handle, ACanvas.Handle);
ACanvas.Free;
end;
end;procedure TForm1.WMNCACTIVE(var msg: TMessage);
begin
inherited;
State:=msg.WParam;
Paint_Caption;
end;end.
不过我觉DELPHI自带的界面还好了,难看也说不上
软件关键还是要好用,实用,才是最重要的