怎样修改windows里的开始按钮的位图?
敬业的IT人
互联网
佚名
2008-1-4 15:54:14
/修改
var
Form1: TForm1;
StartButton: hWnd;
OldBitmap: THandle;
NewImage: TPicture;
/ 将代码放入FormCreate事件
procedure TForm1.FormCreate(Sender: TObject);
begin
NewImage := TPicture.create;
NewImage.LoadFromFile('C:WindowsCircles.BMP');
StartButton := FindWindowEx
(FindWindow(
'Shell_TrayWnd', nil),
0,'Button', nil);
OldBitmap := SendMessage(StartButton,
BM_SetImage, 0,
NewImage.Bitmap.Handle);
end;
/还原
procedure TForm1.FormDestroy(Sender: TObject);
begin
SendMessage(StartButton,BM_SetImage,0,OldBitmap);
NewImage.Free;
end;
for win98se/delphi 5.0通过。
- 最新文章
- 使用DLL文件中封装的窗口[01-04]
- 平滑SpeedButton[01-04]
- StatusBar有多个子栏时,如何确定鼠标在状态栏上双击时..[01-04]
- 菜鸟入门之浅谈函数重载和多态的区别[01-04]
- 几本我不喜欢的Delphi书籍(之一)[01-04]
- 怎样屏蔽或打开windows里的快捷键[01-04]
- 相关文章
- 怎样屏蔽或打开windows里的快捷键[01-04]
- 控制Windows分辨率[01-04]
- 在Windows/Linux中如何打开.sit/.hqx压缩..[01-04]
- 在Windows上安装配置Apache2.2.3及实现多站点[01-04]
- 开发 Windows CE 上程式的软件[01-04]
- Windows Mobile开发环境搭建指南[01-04]
