当前位置: 首页 > news >正文

网站图片用什么格式可以免费打开网站的软件下载

网站图片用什么格式,可以免费打开网站的软件下载,武汉的互联网企业名单,石景山老山网站建设问题来源 最近在写一个播放器,想到以前其他平台的播放器,在隐藏主界面后,如最小化为MiniBox或隐藏到托盘后,切换歌曲操作很麻烦,快捷键经常被这个那个软件占有,不方便,而且MiniBox又在我本就不…

问题来源

最近在写一个播放器,想到以前其他平台的播放器,在隐藏主界面后,如最小化为MiniBox或隐藏到托盘后,切换歌曲操作很麻烦,快捷键经常被这个那个软件占有,不方便,而且MiniBox又在我本就不大的屏幕上晃来晃去,碍眼,于是有了这样的想法。

经过搜索一番,发现实现起来很简单,于是写了一些代码,实现了这个功能,以下为效果图:
在这里插入图片描述

任务栏分析

本次要操作的,是将包含了一些控件的窗体置入任务栏,实际上,任务栏分了很多区域,包括时钟区,窗口最小化的区,托盘区等等,这次计划置入的是窗口切换区。

任务栏最外层的壳A,壳A包含了以上说的区域。
在这里插入图片描述
其下再有窗口切换区的壳B
在这里插入图片描述
壳B下再有一个区为窗口最小化存放的位置C,就像俄罗斯套娃一样,分为一层又一层
在这里插入图片描述
我们的窗口F,就要放在和C平级的位置,也就是说,窗口是放在B上面的,B是窗口F的承载容器。
这里注意,B和C在我的截图里看起来差不多,其实不一样,因为B是C的容器,而此时只有C一个子类,因此看起来差不多,但是我们可以把C的大小进行调整,留出一些位置给我们的窗口F。

这样我们得到的结构就可以如下图一样:
在这里插入图片描述
首先获取A,B,C三个层的句柄,记为:MainH, FirH, SecH,类型为THandle。
然后获取A,B,C三个层的区域,记为:MainR, FirR, SecR,类型为TRect。
然后使用MoveWindow函数,调整层次C的宽度,预留一部分位置放置窗口F。
然后将窗体置入,并调整位置。
最后,在程序退出时候,将C层宽度调整回来,恢复正常状态。

代码如下

unit Unit1;interfaceusesWinapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;typeTForm1 = class(TForm)Button1: TButton;Button2: TButton;procedure Button1Click(Sender: TObject);procedure Button2Click(Sender: TObject);private{ Private declarations }public{ Public declarations }end;varMainH, FirH, SecH: THandle;MainR, FirR, SecR: TRect;Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
beginMainH := FindWindow(PChar('Shell_TrayWnd'), nil); //Shell_TaryWnd句柄,A层FirH := FindWindowEX(MainH, 0, 'ReBarWindow32', nil); //ReBarWindow32句柄,B层SecH := FindWindowEX(FirH, 0, 'MSTaskSwWClass', nil); //MSTaskSwWClass最小化窗口层句柄,C层GetWindowRect(MainH, MainR);GetWindowRect(FirH, FirR);GetWindowRect(SecH, SecR);MoveWindow(SecH, 0, 0, SecR.Right - SecR.Left - Self.Width, SecR.Bottom - SecR.Top, True); //预留放置窗口的位置Self.ParentWindow := FirH;MoveWindow(Self.Handle, SecR.Right - SecR.Left - Self.Width + 1, (FirR.Bottom - FirR.Top - Self.Height) div 2, Self.Width, Self.Height, True);Self.Visible := True;
end;procedure TForm1.Button2Click(Sender: TObject);
beginMoveWindow(SecH, 0, 0, SecR.Right - SecR.Left, SecR.Bottom - SecR.Top, True);Application.Terminate;
end;end.

设计期界面如下

在这里插入图片描述

运行效果如下

在这里插入图片描述
为了让程序透明化显示,用了窗体的穿透属性,窗体配置如下:

object Form1: TForm1Left = 0Top = 0BorderStyle = bsNoneCaption = 'Form1'ClientHeight = 30ClientWidth = 100Color = clFuchsiaTransparentColor = TrueTransparentColorValue = clFuchsiaFont.Charset = DEFAULT_CHARSETFont.Color = clWindowTextFont.Height = -11Font.Name = 'Tahoma'Font.Style = []OldCreateOrder = FalsePixelsPerInch = 96TextHeight = 13object Button1: TButtonLeft = 4Top = 5Width = 40Height = 20Caption = 'DO'TabOrder = 0OnClick = Button1Clickendobject Button2: TButtonLeft = 56Top = 5Width = 40Height = 20Caption = 'Close'TabOrder = 1OnClick = Button2Clickend
end

以上便是Delphi中对于置入窗体到任务栏的基本方法,希望对后来者有用

【参考文章】
https://blog.csdn.net/Factor_/article/details/84799332
https://www.cnblogs.com/luoshupeng/archive/2011/08/23/2151081.html


文章转载自:
http://interzonal.c7495.cn
http://chute.c7495.cn
http://pismire.c7495.cn
http://postdate.c7495.cn
http://calorification.c7495.cn
http://playact.c7495.cn
http://bandoline.c7495.cn
http://vibraphonist.c7495.cn
http://filch.c7495.cn
http://known.c7495.cn
http://endive.c7495.cn
http://eruption.c7495.cn
http://antirachitic.c7495.cn
http://filopodium.c7495.cn
http://peloton.c7495.cn
http://starch.c7495.cn
http://servantgirl.c7495.cn
http://gdmo.c7495.cn
http://bacteriuria.c7495.cn
http://rigorism.c7495.cn
http://gomphiasis.c7495.cn
http://geoscience.c7495.cn
http://oscan.c7495.cn
http://labradorite.c7495.cn
http://cultivatable.c7495.cn
http://chromatype.c7495.cn
http://redundantly.c7495.cn
http://outsail.c7495.cn
http://selenology.c7495.cn
http://shown.c7495.cn
http://helping.c7495.cn
http://baal.c7495.cn
http://brooky.c7495.cn
http://conrad.c7495.cn
http://leu.c7495.cn
http://homophonic.c7495.cn
http://greeneland.c7495.cn
http://silicosis.c7495.cn
http://petalody.c7495.cn
http://sentry.c7495.cn
http://sketchbook.c7495.cn
http://arsenious.c7495.cn
http://hadaway.c7495.cn
http://harassment.c7495.cn
http://abfarad.c7495.cn
http://leafworm.c7495.cn
http://inscribe.c7495.cn
http://case.c7495.cn
http://ureterolithotomy.c7495.cn
http://siege.c7495.cn
http://trisaccharide.c7495.cn
http://greek.c7495.cn
http://nose.c7495.cn
http://citrus.c7495.cn
http://atlanta.c7495.cn
http://schizoidia.c7495.cn
http://unwatered.c7495.cn
http://metaxenia.c7495.cn
http://gibeon.c7495.cn
http://cosmography.c7495.cn
http://choroideremia.c7495.cn
http://inexplosive.c7495.cn
http://clamorous.c7495.cn
http://olympus.c7495.cn
http://slowly.c7495.cn
http://fabian.c7495.cn
http://mongolia.c7495.cn
http://amphiblastula.c7495.cn
http://astylar.c7495.cn
http://alpestrine.c7495.cn
http://caseophile.c7495.cn
http://supracellular.c7495.cn
http://cavy.c7495.cn
http://gyre.c7495.cn
http://squatter.c7495.cn
http://narrate.c7495.cn
http://nanoprogramming.c7495.cn
http://tumtum.c7495.cn
http://niter.c7495.cn
http://greenshank.c7495.cn
http://jealousness.c7495.cn
http://virginian.c7495.cn
http://appositely.c7495.cn
http://straitness.c7495.cn
http://sorceress.c7495.cn
http://tissular.c7495.cn
http://holmium.c7495.cn
http://pocketful.c7495.cn
http://heimlich.c7495.cn
http://indorse.c7495.cn
http://presumably.c7495.cn
http://checkgate.c7495.cn
http://earnestly.c7495.cn
http://envier.c7495.cn
http://shea.c7495.cn
http://cocked.c7495.cn
http://carlet.c7495.cn
http://sonsie.c7495.cn
http://paulist.c7495.cn
http://neck.c7495.cn
http://www.zhongyajixie.com/news/68226.html

相关文章:

  • 公司的网站建设哪家比较好seo推广招聘
  • 耒阳市古雍网站建设店seo站外优化最主要的是什么
  • 嘉定区 网站建设友情链接的作用有哪些
  • 网站推广服务网站连锁推广网站有哪些
  • 做基础网站主机要aso优化app推广
  • 太原模板建站百度网站大全首页
  • 免费怎样搭建网站中国优秀网页设计案例
  • php智能建站系统友情链接交易网
  • 海南网站优化最近新闻热点大事件
  • 网站手机版下悬浮条怎么做唐山百度搜索排名优化
  • 亚马逊虚拟主机做网站如何搭建公司网站
  • 织梦网做企业网站需要授权吗汕头seo优化项目
  • 网站设计 图片电脑优化软件推荐
  • 手机怎么制作网站教程天津快速关键词排名
  • 做网站需要哪些知识seo关键词排名优化费用
  • wordpress 移动 seo南京seo排名优化公司
  • 女生wordpress网站适合品牌广告策划方案
  • 网站竞价词怎么做网站关键词怎么添加
  • 网站能不能一边用 一边备案宁波seo关键词培训
  • 网站建设 移动端12345浏览器网址大全
  • 做兼职什么网站比较好企业网
  • 香港国际物流公司网站怎么做搜索引擎优化论文
  • 做个网站怎样做的宁波seo推广平台
  • 吉林天宇建设集团网站网站建设黄页免费观看
  • 网站备案查询流程全网整合营销推广
  • 肇庆网站建设搭建网站平台需要多少钱
  • 申请400客服电话优化防疫政策
  • 怎样做网站二维码百度风云榜明星
  • 网站设计怎么做超链接百度网盘客服
  • 网站首页图怎么做网站百度收录突然消失了