登录
首页 » 界面开发 » Duilib窗体增加阴影效果

Duilib窗体增加阴影效果

于 2022-06-18 发布 文件大小:7.07 kB
0 261
下载积分: 2 下载次数: 1

代码说明:

应用背景用于在Duilib界面库产生的窗体周围添加阴影效果关键技术1. 在要添加阴影效果的窗体类中包含WndShadow的头文件,并创建对应类型的成员变量m_WndShadow。 2. 在WinMain处添加初始化 // Initiation of the shadow CWndShadow::Initialize(hInstance); 3. 窗体OnCreate中设置 LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { LONG styleValue = ::GetWindowLong(*this, GWL_STYLE); styleValue &= ~WS_CAPTION; ::SetWindowLong(*this, GWL_STYLE, styleValue | WS_CLIPSIBLINGS | WS_CLIPCHILDREN); m_WndShadow.Create(m_hWnd); m_WndShadow.SetSize(4); m_WndShadow.SetPosition(0, 0); //blablabla.... return 0; } 说明:此处为了更清除的看到窗体边框阴影效果,我将调用的地方原来的m_WndShadow.SetSize(4);改为 了m_WndShadow.SetSize(15);正常情况下,Size设置为4的效果即可。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 五子棋游戏
    基于LabVIEW的五子棋游戏基于非常良好的人机界面,对于初学者来说是一个非常不错的人机界面参考。本程序实现了人机对弈和双人对弈的功能
    2022-03-22 19:31:52下载
    积分:1
  • 一个非常好的烟花程序,声音和图像。编译生成的使用…
    一种非常好的烟花程序,有声音,有图像。使用C++ builder编制而成。-a very good fireworks procedures, voices and images. The use of compiled C builder.
    2022-05-26 03:17:30下载
    积分:1
  • WTL实现自我的使用
    利用wtl实现的自画控件功能,可以实现控件的外观和行为-WTL realize the use of self-painting the control function, can realize the control the appearance and behavior
    2022-06-25 22:45:43下载
    积分:1
  • days edge medicine outstanding business system for the registration module sourc...
    天力卓越医药商务系统的注册模块原代码, 程序编写紧凑,比较使用,推荐!-days edge medicine outstanding business system for the registration module source code, programmers compact, more use and recommend!
    2022-02-12 22:39:00下载
    积分:1
  • …pcckmodbus.zip
    ... pcckmodbus.zip - lpc932芯片用于modbus通讯的范例(2004-12-2,C#, 116KB, 下载10次, 提供者卢卫城)【查看评论】 Ikoras.rar - 硬盘MP3源码,包括原理图,PCB (2004-12-1, C, 321KB, 下载50次, 提供者邓铭均)【查看评论】 DOS下的tcp-ip源代码.zip - dos下的-... pcckmodbus.zip- lpc932 Modbus communications chips used in the examples (2004-12-2, C#, 116KB, downloaded 10 times, Lu Wei City) [see comments-- Ikoras.rar-drive MP3 source, including schematics, PCB (2004-12-1, C, 321KB, downloaded 50 times, both providers Ming-) [see comments under DOS-- tcp- ip source code. zip-dos under the
    2022-11-02 01:15:03下载
    积分:1
  • 不使用PropertySheet的tabbed dialogs多页面对话框,映射对话框的类都是从CDialog继承过来的,比属性页生成多页面对话框简单多了,便于...
    不使用PropertySheet的tabbed dialogs多页面对话框,映射对话框的类都是从CDialog继承过来的,比属性页生成多页面对话框简单多了,便于添加到文档/视图内。-Create tabbed dialogs without using property sheet and simplify the process of generating tabbed dialogs and easily add to doc/view program for property setups.
    2022-03-31 04:00:47下载
    积分:1
  • 这是一个网页的模版,是我设计制作的 我想学java 还没有那么多的java 原码,先上传一个这个吧...
    这是一个网页的模版,是我设计制作的 我想学java 还没有那么多的java 原码,先上传一个这个吧-This a website template, the design is the java I wanted to learn not so much java source, one of the first to upload it
    2022-03-10 15:01:36下载
    积分:1
  • DevStudio style interface effects, using the CJLibrary source code, the more pra...
    DevStudio风格的界面效果,采用的是CJLibrary的源码,比较实用-DevStudio style interface effects, using the CJLibrary source code, the more practical
    2022-12-17 04:25:04下载
    积分:1
  • 显示自定义按钮
    通过继承MFC的BUTTON类,实现多样化界面,可以定义自己喜欢的按钮图形,并通过画刷进行渲染,使用时只需定义这样的一个按钮对象,使用其中的接口,便能轻松的实现你想要的效果。
    2022-05-14 06:53:14下载
    积分:1
  • vs+opencv+qt的GUI打开摄像头及处理函数
    vs+opencv+qt的GUI打开摄像头及处理函数,在本代码中,利用三个按钮,实现开始,处理和结束功能,在处理上现在只是灰度和canny处理,可根据自己需求补全
    2022-10-24 13:35:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载