#include "..\DuiLib\UIlib.h"
#ifdef _DEBUG
# ifdef _UNICODE
# pragma comment(lib, "..\\Lib\\DuiLib_ud.lib")
# else
# pragma comment(lib, "..\\Lib\\DuiLib_d.lib")
# endif
#else
# ifdef _UNICODE
# pragma comment(lib, "..\\Lib\\DuiLib_u.lib")
# else
# pragma comment(lib, "..\\Lib\\DuiLib.lib")
# endif
#endif
#include "Layered.hpp"
class CMainFram : public DuiLib::WindowImplBase
{
public:
virtual void Notify(DuiLib::TNotifyUI& msg)
{
if (msg.sType == DUI_MSGTYPE_CLICK)
{
if (msg.pSender->GetName() == _T("ok"))
::MessageBox(GetHWND(), _T("되쩍"), _T("되쩍"), MB_OK);
else if (msg.pSender->GetName() == _T("cancel"))
::PostQuitMessage(0);
}
}
virtual DuiLib::CControlUI* CreateControl(LPCTSTR pstrClass)
{
if (_tcscmp(pstrClass, _T("Layered")) == 0)
{
return new DuiLib::CLayeredWnd;
}
return nullptr;
}
virtual DuiLib::CDuiString GetSkinFolder(){return _T("");}
virtual DuiLib::CDuiString GetSkinFile(){return _T("Login.xml");}
virtual LPCTSTR GetWindowClassName(void) const{return _T("MainFram");}
};
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int nCmdShow)
{
CMainFram fram;
fram.Create(NULL, NULL, UI_WNDSTYLE_DIALOG, NULL);
fram.CenterWindow();
fram.ShowModal();
return 0;
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
TestLayeredWnd.rar (57个子文件)
Lib
DuiLib_d.lib 569KB
DuiLib.lib 566KB
DuiLib_u.lib 571KB
DuiLib_ud.lib 572KB
Bin
Login.xml 1KB
DuiLib_ud.dll 1.1MB
Login_BtnClose.png 3KB
DuiLib_u.dll 475KB
Login_BtnEnter.png 5KB
TestLayeredWndD.exe 116KB
Login_Bg.png 10KB
cleaner.bat 142B
TestLayeredWnd.sln 909B
TestLayeredWnd
Layered.hpp 7KB
TestLayeredWnd.vcxproj.user 686B
TestLayeredWnd.vcxproj.filters 1KB
Main.cpp 1KB
TestLayeredWnd.vcxproj 4KB
DuiLib
Core
UIManager.h 13KB
UIControl.h 7KB
UIMarkup.h 3KB
UIRender.h 2KB
UIBase.h 3KB
UIContainer.h 4KB
UIDlgBuilder.h 1KB
UIDefine.h 11KB
UIlib.h 4KB
Layout
UIChildLayout.h 547B
UITabLayout.h 655B
UITileLayout.h 557B
UIHorizontalLayout.h 836B
UIVerticalLayout.h 830B
Control
UIList.h 12KB
UICombo.h 4KB
UICheckBox.h 732B
UIDateTime.h 666B
UIEdit.h 2KB
UIComboBox.h 665B
UIFlash.h 2KB
UIScrollBar.h 4KB
UISlider.h 1KB
UIButton.h 2KB
UITreeView.h 4KB
UILabel.h 3KB
UIWebBrowser.h 5KB
UIRichEdit.h 5KB
UIProgress.h 989B
UIText.h 622B
UIOption.h 1KB
UIActiveX.h 2KB
Utils
UIDelegate.h 2KB
downloadmgr.h 6KB
WebBrowserEventHandler.h 4KB
FlashEventHandler.h 733B
WinImplBase.h 3KB
Utils.h 6KB
Flash11.tlb 14KB
共 57 条
- 1
资源评论
- 海贼王大妈2014-11-27可以用,比其他的好
- wenyongfan2015-12-14可以用,比其他的好
- guoheping1132015-03-11很好,是我想要滴
SuperMstsc
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功