资源简介
DUILib最新版代码,包含全部Demo程序,360SafeDemo,QQDemo,MenuDemo
代码片段和文件信息
#include “stdafx.h“
#include
#include
#include “ControlEx.h“
class C360SafeframeWnd : public CWindowWnd public INotifyUI
{
public:
C360SafeframeWnd() { };
LPCTSTR GetWindowClassName() const { return _T(“UIMainframe“); };
UINT GetClassstyle() const { return CS_DBLCLKS; };
void OnFinalMessage(HWND /*hWnd*/) { delete this; };
void Init() {
m_pCloseBtn = static_cast(m_pm.FindControl(_T(“closebtn“)));
m_pMaxBtn = static_cast(m_pm.FindControl(_T(“maxbtn“)));
m_pRestoreBtn = static_cast(m_pm.FindControl(_T(“restorebtn“)));
m_pMinBtn = static_cast(m_pm.FindControl(_T(“minbtn“)));
}
void OnPrepare() {
}
void Notify(TNotifyUI& msg)
{
if( msg.sType == _T(“windowinit“) ) OnPrepare();
else if( msg.sType == _T(“click“) ) {
if( msg.pSender == m_pCloseBtn ) {
PostQuitMessage(0);
return;
}
else if( msg.pSender == m_pMinBtn ) {
SendMessage(WM_SYSCOMMAND SC_MINIMIZE 0); return; }
else if( msg.pSender == m_pMaxBtn ) {
SendMessage(WM_SYSCOMMAND SC_MAXIMIZE 0); return; }
else if( msg.pSender == m_pRestoreBtn ) {
SendMessage(WM_SYSCOMMAND SC_RESTORE 0); return; }
}
else if(msg.sType==_T(“selectchanged“))
{
CDuiString name = msg.pSender->GetName();
CTabLayoutUI* pControl = static_cast(m_pm.FindControl(_T(“switch“)));
if(name==_T(“examine“))
pControl->SelectItem(0);
else if(name==_T(“trojan“))
pControl->SelectItem(1);
else if(name==_T(“plugins“))
pControl->SelectItem(2);
else if(name==_T(“vulnerability“))
pControl->SelectItem(3);
else if(name==_T(“rubbish“))
pControl->SelectItem(4);
else if(name==_T(“cleanup“))
pControl->SelectItem(5);
else if(name==_T(“fix“))
pControl->SelectItem(6);
else if(name==_T(“tool“))
pControl->SelectItem(7);
}
}
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_pm.Init(m_hWnd);
CDialogBuilder builder;
CDialogBuilderCallbackEx cb;
CControlUI* pRoot = builder.Create(_T(“skin.xml“) (UINT)0 &cb &m_pm);
ASSERT(pRoot && “Failed to parse xml“);
m_pm.AttachDialog(pRoot);
m_pm.AddNotifier(this);
Init();
return 0;
}
LRESULT OnClose(UINT uMsg WPARAM wParam LPARAM lParam BOOL& bHandled)
{
bHandled = FALSE;
return 0;
}
LRESULT OnDestroy(UINT uMsg WPARAM wParam LPARAM lParam BOOL& bHandled)
{
::PostQuitMessage(0L);
bHandled = FALSE;
return 0;
}
LRESULT OnNcActivate(UINT uMsg WPARAM wParam LPARAM lParam BOOL& bHandled)
{
if( ::IsIconic(*this) ) bHandled = FALSE;
return (wParam == 0) ? TRUE : FALSE;
}
LRESULT OnNcCalcSize(UINT uMsg WPARAM wParam LPARAM lParam BOOL&
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-12 17:21 duilib-master\
文件 373 2018-11-12 17:21 duilib-master\.gitignore
目录 0 2018-11-12 17:21 duilib-master\360SafeDemo\
文件 8858 2018-11-12 17:21 duilib-master\360SafeDemo\360Safe.cpp
文件 10547 2018-11-12 17:21 duilib-master\360SafeDemo\360SafeDemo.vcproj
文件 14909 2018-11-12 17:21 duilib-master\360SafeDemo\360SafeDemo.vcxproj
文件 966 2018-11-12 17:21 duilib-master\360SafeDemo\360SafeDemo.vcxproj.filters
文件 626 2018-11-12 17:21 duilib-master\360SafeDemo\CMakeLists.txt
文件 606 2018-11-12 17:21 duilib-master\360SafeDemo\ControlEx.h
文件 1079 2018-11-12 17:21 duilib-master\360SafeDemo\StdAfx.cpp
文件 571 2018-11-12 17:21 duilib-master\360SafeDemo\StdAfx.h
文件 667 2018-11-12 17:21 duilib-master\CMakeLists.txt
文件 10827 2018-11-12 17:21 duilib-master\DuiLib.sln
目录 0 2018-11-12 17:21 duilib-master\DuiLib\
文件 1153 2018-11-12 17:21 duilib-master\DuiLib\CMakeLists.txt
目录 0 2018-11-12 17:21 duilib-master\DuiLib\Control\
文件 40618 2018-11-12 17:21 duilib-master\DuiLib\Control\UIActiveX.cpp
文件 1958 2018-11-12 17:21 duilib-master\DuiLib\Control\UIActiveX.h
文件 14421 2018-11-12 17:21 duilib-master\DuiLib\Control\UIButton.cpp
文件 1996 2018-11-12 17:21 duilib-master\DuiLib\Control\UIButton.h
文件 526 2018-11-12 17:21 duilib-master\DuiLib\Control\UICheckBox.cpp
文件 800 2018-11-12 17:21 duilib-master\DuiLib\Control\UICheckBox.h
文件 41410 2018-11-12 17:21 duilib-master\DuiLib\Control\UICombo.cpp
文件 4613 2018-11-12 17:21 duilib-master\DuiLib\Control\UICombo.h
文件 9972 2018-11-12 17:21 duilib-master\DuiLib\Control\UIDateTime.cpp
文件 859 2018-11-12 17:21 duilib-master\DuiLib\Control\UIDateTime.h
文件 19489 2018-11-12 17:21 duilib-master\DuiLib\Control\UIEdit.cpp
文件 2150 2018-11-12 17:21 duilib-master\DuiLib\Control\UIEdit.h
文件 6560 2018-11-12 17:21 duilib-master\DuiLib\Control\UIFlash.cpp
文件 2013 2018-11-12 17:21 duilib-master\DuiLib\Control\UIFlash.h
文件 9336 2018-11-12 17:21 duilib-master\DuiLib\Control\UIGifAnim.cpp
............此处省略423个文件信息
- 上一篇:Jli
nkARM_V486a - 下一篇:u3d疯狂击球小游戏
相关资源
- Duilib最新界面库完整带demo
- duilib+cef3源码
- 2013 duilib入门简明教程 整个工程(含
- duilib中嵌入cef3, 并和js交互
- 让Duilib完美支持gif
- duilibDemo
- VirtualList.7z
- Duilib ListUI扩展 源码
- duilib官方帮助文档
- DuiCef
- 仿记事本Demo
- DUIlib使用Fastreport
- Duilib控件穿透测试代码
- Duilib中的可拖放节点的树实现
- 的按钮图片资源
- DuiLib帮助文档.chm
- DuilibPreview.rar
- duilib 仿酷狗 QQ调色板修改版3
- duilib IE去边框和滚动条
- duilib中UIList支持多选+右键菜单Demo
- duilib获取CSliderUI滑动事件 - 用自定义
- DUILIB入门简明教程
- duilib Designer exe程序及动态库附大量
评论
共有 条评论