uiblib 学戏笔记
2016-03-05 18:48
363 查看
class CDuiFrameWnd : public WindowImplBase
{
public:
virtual LPCTSTR GetWindowClassName() const { return _T("base"); }
virtual CDuiString GetSkinFile() { return _T("text.xml"); }
virtual CDuiString GetSkinFolder() { return _T(""); }
};
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
CPaintManagerUI::SetInstance(hInstance);
CDuiFrameWnd duiFrame;
duiFrame.Create(NULL, _T("DUIWnd"), UI_WNDSTYLE_FRAME, WS_EX_WINDOWEDGE);
duiFrame.CenterWindow();
duiFrame.ShowModal();
return 0;
}
XML
{
public:
virtual LPCTSTR GetWindowClassName() const { return _T("base"); }
virtual CDuiString GetSkinFile() { return _T("text.xml"); }
virtual CDuiString GetSkinFolder() { return _T(""); }
};
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
CPaintManagerUI::SetInstance(hInstance);
CDuiFrameWnd duiFrame;
duiFrame.Create(NULL, _T("DUIWnd"), UI_WNDSTYLE_FRAME, WS_EX_WINDOWEDGE);
duiFrame.CenterWindow();
duiFrame.ShowModal();
return 0;
}
XML
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <Window size="800,600" sizebox="3,3,3,3" caption="2,2,2,40"> <VerticalLayout name="verticalLayout1" bkimage="grace.png"> <HorizontalLayout name="HorizontalLaout1" height="40"> <Label name="Caption" text="My first" width="740" height="38" bkcolor="#FF800080" bkcolor2="#00800080" textcolor="#FF000000" disabledtextcolor="#FFA7A6AA" /> <Button name="bth" width="60" bkimage="grace.bmp" textcolor="#FF000000" disabledtextcolor="#FFA7A6AA" align="center" /> </HorizontalLayout> <HorizontalLayout name="Horizontallayout2"> <VerticalLayout name="verticalLayout2" /> <VerticalLayout name="VerticalLayout3" width="300"> <HorizontalLayout name="HrizontalLayout3" /> <HorizontalLayout name="HorizontalLayoutUI4" height="60"> <Edit name="password" text="password" bkcolor="#FF008080" bkcolor2="#00FFFBF0" textpadding="4,3,4,3" textcolor="#FF000000" disabledtextcolor="#FFA7A6AA" /> </HorizontalLayout> <HorizontalLayout name="HrizontalLayout5" /> </VerticalLayout> <VerticalLayout name="verticalLayout4" /> </HorizontalLayout> </VerticalLayout> </Window>
相关文章推荐
- UIDatePicker(loading...)
- 关于error file: /boot/grub/i386-pc/normal.mod not found. Grub Rescue的修复问题
- UIPickerView(loading...)
- UIButton(loading...)
- SQL语句建表、设置主键、外键、check、default、unique约束
- UIDynamicBehavior的简单使用:接球小游戏
- UESTC--1251(模拟)
- UIView的bounds和frame属性区别
- Druid 配置详解
- hdoj--5233--Gunner II(map+queue&&二分)
- hdoj--5233--Gunner II(map+queue&&二分)
- GUI相关学习资料
- String,StringBuffer与StringBuilder的区别
- duilib Webkit内核dui化浏览器控件
- jsp Request获取url信息的各种方法比较
- POJ1986 Distance Queries(树链剖分LCA)
- request.getScheme()+"://"+request.getServerName()+":"+request.getServerP
- 顺序表(Sequential List)
- android中SQLlite数据库中对应的SQL数据库的查询 query ,delete,insert
- 面试常客Handler详细解析(Handler与Looper、MessageQueue的关系)(二)