├── 360SafeDemo ├── 360Safe.cpp ├── 360SafeDemo.vcproj ├── CMakeLists.txt ├── ControlEx.h ├── StdAfx.cpp └── StdAfx.h ├── Demo.sln ├── DuiDesigner.sln ├── DuiDesigner ├── CMakeLists.txt ├── ChildFrm.cpp ├── ChildFrm.h ├── ClassView.cpp ├── ClassView.h ├── DialogCheckUpdate.cpp ├── DialogCheckUpdate.h ├── DialogCustomFonts.cpp ├── DialogCustomFonts.h ├── DialogDefaultAttribList.cpp ├── DialogDefaultAttribList.h ├── DialogProjectNew.cpp ├── DialogProjectNew.h ├── DialogSaveAsName.cpp ├── DialogSaveAsName.h ├── DialogSkinFileNew.cpp ├── DialogSkinFileNew.h ├── DialogTemplateOpen.cpp ├── DialogTemplateOpen.h ├── DialogUIAttribEdit.cpp ├── DialogUIAttribEdit.h ├── DuiDesigner.cpp ├── DuiDesigner.h ├── DuiDesigner.rc ├── DuiDesigner.reg ├── DuiDesigner.vcproj ├── FileView.cpp ├── FileView.h ├── GlobalVariable.cpp ├── GlobalVariable.h ├── HookAPI.cpp ├── HookAPI.h ├── ImageDialog.cpp ├── ImageDialog.h ├── ImagePreview.cpp ├── ImagePreview.h ├── LayoutManager.cpp ├── LayoutManager.h ├── MainFrm.cpp ├── MainFrm.h ├── MultiUITracker.cpp ├── MultiUITracker.h ├── PropertiesWnd.cpp ├── PropertiesWnd.h ├── PropertyTabLayoutUI.cpp ├── PropertyTabLayoutUI.h ├── ReadMe.txt ├── ResourceView.cpp ├── ResourceView.h ├── ToolBoxCtrl.cpp ├── ToolBoxCtrl.h ├── ToolBoxWnd.cpp ├── ToolBoxWnd.h ├── UICommandHistory.cpp ├── UICommandHistory.h ├── UIDesignerDoc.cpp ├── UIDesignerDoc.h ├── UIDesignerView.cpp ├── UIDesignerView.h ├── UIImagePreview.cpp ├── UIImagePreview.h ├── UIProperties.cpp ├── UIProperties.h ├── UIUtil.cpp ├── UIUtil.h ├── UserImages.bmp ├── ViewTree.cpp ├── ViewTree.h ├── res │ ├── ToolBox │ │ ├── Active.ico │ │ ├── Button.ico │ │ ├── Combo.ico │ │ ├── Container.ico │ │ ├── Control.ico │ │ ├── Edit.ico │ │ ├── HorizontalLayout.ico │ │ ├── Label.ico │ │ ├── Option.ico │ │ ├── Pointer.ico │ │ ├── Progress.ico │ │ ├── ScrollBar.ico │ │ ├── Slider.ico │ │ ├── TabLayout.ico │ │ ├── Text.ico │ │ ├── TileLayout.ico │ │ └── VerticalLayout.ico │ ├── Toolbar.bmp │ ├── Toolbar256.bmp │ ├── Toolbar_hc.bmp │ ├── UIDesigner.ico │ ├── UIDesigner.rc2 │ ├── UIDesignerDoc.ico │ ├── banner.bmp │ ├── class_view.ico │ ├── class_view_hc.ico │ ├── classview.bmp │ ├── classview_hc.bmp │ ├── explorer.bmp │ ├── explorer_hc.bmp │ ├── file_view.ico │ ├── file_view_hc.ico │ ├── fileview.bmp │ ├── fileview_hc.bmp │ ├── formedit.bmp │ ├── formedit_hc.bmp │ ├── menuimages.bmp │ ├── menuimages_hc.bmp │ ├── movehandle.bmp │ ├── properties.bmp │ ├── properties_hc.bmp │ ├── properties_wnd.ico │ ├── properties_wnd_hc.ico │ ├── res_view.ico │ ├── res_view_hc.ico │ ├── resource.bmp │ ├── resource24.bmp │ ├── sort.bmp │ ├── sort_hc.bmp │ ├── toolbox_wnd_hc.ico │ └── uimenu.bmp ├── resource.h ├── stdafx.cpp ├── stdafx.h ├── targetver.h └── third_party │ └── tinyxml │ ├── tinystr.cpp │ ├── tinystr.h │ ├── tinyxml.cpp │ ├── tinyxml.h │ ├── tinyxmlerror.cpp │ └── tinyxmlparser.cpp ├── DuiLib.sln ├── DuiLib ├── CMakeLists.txt ├── Control │ ├── Rpcsal.h │ ├── UIActiveX.cpp │ ├── UIActiveX.h │ ├── UIButton.cpp │ ├── UIButton.h │ ├── UICheckBox.cpp │ ├── UICheckBox.h │ ├── UICombo.cpp │ ├── UICombo.h │ ├── UIComboBox.cpp │ ├── UIComboBox.h │ ├── UIDateTime.cpp │ ├── UIDateTime.h │ ├── UIEdit.cpp │ ├── UIEdit.h │ ├── UIFlash.cpp │ ├── UIFlash.h │ ├── UILabel.cpp │ ├── UILabel.h │ ├── UIList.cpp │ ├── UIList.h │ ├── UIOption.cpp │ ├── UIOption.h │ ├── UIProgress.cpp │ ├── UIProgress.h │ ├── UIRichEdit.cpp │ ├── UIRichEdit.h │ ├── UIScrollBar.cpp │ ├── UIScrollBar.h │ ├── UISlider.cpp │ ├── UISlider.h │ ├── UIText.cpp │ ├── UIText.h │ ├── UITreeView.cpp │ ├── UITreeView.h │ ├── UIWebBrowser.cpp │ └── UIWebBrowser.h ├── Core │ ├── UIBase.cpp │ ├── UIBase.h │ ├── UIContainer.cpp │ ├── UIContainer.h │ ├── UIControl.cpp │ ├── UIControl.h │ ├── UIDefine.h │ ├── UIDlgBuilder.cpp │ ├── UIDlgBuilder.h │ ├── UIManager.cpp │ ├── UIManager.h │ ├── UIMarkup.cpp │ ├── UIMarkup.h │ ├── UIRender.cpp │ └── UIRender.h ├── DuiLib.vcproj ├── Layout │ ├── UIChildLayout.cpp │ ├── UIChildLayout.h │ ├── UIHorizontalLayout.cpp │ ├── UIHorizontalLayout.h │ ├── UITabLayout.cpp │ ├── UITabLayout.h │ ├── UITileLayout.cpp │ ├── UITileLayout.h │ ├── UIVerticalLayout.cpp │ └── UIVerticalLayout.h ├── StdAfx.cpp ├── StdAfx.h ├── UIlib.cpp ├── UIlib.h └── Utils │ ├── Flash11.tlb │ ├── FlashEventHandler.h │ ├── UIDelegate.cpp │ ├── UIDelegate.h │ ├── Utils.cpp │ ├── Utils.h │ ├── WebBrowserEventHandler.h │ ├── WinImplBase.cpp │ ├── WinImplBase.h │ ├── XUnzip.cpp │ ├── downloadmgr.h │ └── stb_image.c ├── FileTree ├── FileTree.cpp ├── FileTree.h ├── FileTree.ico ├── FileTree.rc ├── FileTree.vcproj ├── MainDialog.cpp ├── MainDialog.h ├── ReadMe.txt ├── Resource.h ├── small.ico ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── FlashDemo ├── App.cpp ├── CMakeLists.txt ├── FlashDemo.vcproj ├── StdAfx.cpp └── StdAfx.h ├── GameDemo ├── CMakeLists.txt ├── ControlEx.h ├── GameDemo.cpp ├── GameDemo.sln ├── GameDemo.vcproj ├── MiniDumper.cpp ├── MiniDumper.h ├── StdAfx.cpp └── StdAfx.h ├── Lib ├── duilib_m.lib └── duilib_md.lib ├── ListDemo ├── CMakeLists.txt ├── ListDemo.vcproj ├── Main.cpp └── MenuWnd.h ├── ListExtension ├── ListEx.cpp ├── ListEx.h ├── ListExMain.cpp ├── ListExMainWnd.cpp ├── ListExMainWnd.h ├── ListExtension.vcproj ├── stdafx.cpp └── stdafx.h ├── MenuDemo ├── CMakeLists.txt ├── MenuDemo.rc ├── MenuDemo.vcproj ├── StdAfx.cpp ├── StdAfx.h ├── UICrack.cpp ├── UICrack.h ├── UIMenu.cpp ├── UIMenu.h ├── debug.cpp ├── debug.hpp ├── main.cpp ├── main_frame.cpp ├── main_frame.hpp ├── observer_impl_base.hpp ├── res │ ├── button.png │ ├── button_h.png │ ├── button_p.png │ ├── checkbox.png │ ├── checkbox_h.png │ ├── checkbox_p.png │ ├── close.png │ ├── close_h.png │ ├── close_p.png │ ├── combo.png │ ├── maximize.png │ ├── maximize_h.png │ ├── maximize_p.png │ ├── menu_bk.png │ ├── menutest.xml │ ├── minimize.png │ ├── minimize_h.png │ ├── minimize_p.png │ ├── radio.png │ ├── radio_h.png │ ├── radio_p.png │ ├── restore.png │ ├── restore_h.png │ ├── restore_p.png │ ├── scrollbar_v.png │ ├── skin.xml │ ├── slider_bg.png │ ├── slider_fg.png │ ├── slider_thumb.png │ └── tree_expand.png └── resource.h ├── QQDemo ├── CMakeLists.txt ├── ColorPicker.cpp ├── ColorPicker.hpp ├── QQDemo.rc ├── QQDemo.vcproj ├── StdAfx.cpp ├── StdAfx.h ├── UIFriends.cpp ├── UIFriends.hpp ├── UIGroups.cpp ├── UIGroups.hpp ├── UIListCommonDefine.cpp ├── UIListCommonDefine.hpp ├── UIMicroBlog.cpp ├── UIMicroBlog.hpp ├── chat_dialog.cpp ├── chat_dialog.hpp ├── color_skin.cpp ├── color_skin.hpp ├── debug.cpp ├── debug.hpp ├── main.cpp ├── main_frame.cpp ├── main_frame.hpp ├── observer_impl_base.hpp ├── res │ └── QQRes.zip ├── resource.h └── skin_change_event.hpp ├── README.md ├── RichListDemo ├── CMakeLists.txt ├── ReadMe.txt ├── Resource.h ├── RichListDemo.cpp ├── RichListDemo.h ├── RichListDemo.ico ├── RichListDemo.rc ├── RichListDemo.vcproj ├── RichListWnd.cpp ├── RichListWnd.h ├── small.ico ├── stdafx.cpp └── stdafx.h ├── TestApp1 ├── App.cpp ├── StdAfx.cpp ├── StdAfx.h └── TestApp1.vcproj ├── XMP ├── DefineUnicode.h ├── DuiFrameWnd.cpp ├── DuiFrameWnd.h ├── KDetectMemoryLeak.h ├── MenuWnd.cpp ├── MenuWnd.h ├── PlayList.cpp ├── PlayList.h ├── XMP.rc ├── XMP.vcproj ├── duilib.h ├── logo.ico ├── main.cpp └── resource.h ├── bin ├── DuiDesigner.exe ├── DuiLib_u.dll └── skin │ ├── 360SafeRes.zip │ ├── FlashRes │ ├── frame_btn_close_disable.bmp │ ├── frame_btn_close_down.bmp │ ├── frame_btn_close_hot.bmp │ ├── frame_btn_close_normal.bmp │ ├── test.swf │ ├── ui.xml │ └── winbk.bmp │ ├── GameRes.zip │ ├── GameRes │ ├── Combo_nor.bmp │ ├── Combo_over.bmp │ ├── Headerctrl_Sperator.bmp │ ├── button_down.bmp │ ├── button_nor.bmp │ ├── button_over.bmp │ ├── chatmsgbk.png │ ├── desk.xml │ ├── frame_btn_close_disable.bmp │ ├── frame_btn_close_down.bmp │ ├── frame_btn_close_hot.bmp │ ├── frame_btn_close_normal.bmp │ ├── frame_btn_max.bmp │ ├── frame_btn_min.bmp │ ├── gameicons.png │ ├── hall.xml │ ├── headerctrl_down.bmp │ ├── headerctrl_hot.bmp │ ├── headerctrl_normal.bmp │ ├── login.xml │ ├── scrollbar.bmp │ ├── tab_back.bmp │ ├── tab_close.png │ ├── tab_hot.bmp │ ├── tab_normal.bmp │ ├── tab_select.bmp │ ├── table.png │ ├── tree_expand.png │ ├── tree_hot.bmp │ ├── tree_select.bmp │ ├── tree_top.png │ ├── user.png │ ├── vip.png │ └── winbk.bmp │ ├── ListExtension │ ├── Headerctrl_Sperator.bmp │ ├── btn_close_down.png │ ├── btn_close_highlight.png │ ├── btn_close_normal.png │ ├── btn_mini_down.png │ ├── btn_mini_highlight.png │ ├── btn_mini_normal.png │ ├── button_down.bmp │ ├── button_nor.bmp │ ├── button_over.bmp │ ├── checkbox.png │ ├── checkbox_h.png │ ├── checkbox_p.png │ ├── headerctrl_down.bmp │ ├── headerctrl_hot.bmp │ ├── headerctrl_normal.bmp │ ├── list_bg.png │ ├── list_header_bg.png │ ├── list_header_sep.png │ ├── main.xml │ ├── scrollbar.bmp │ ├── sigle_list_item_column.xml │ ├── tree_hot.bmp │ ├── tree_select.bmp │ └── winbg.png │ ├── ListRes.zip │ ├── ListRes │ ├── bg.png │ ├── button.png │ ├── checked.png │ ├── list_header_bg.png │ ├── list_header_hot.png │ ├── list_header_pushed.png │ ├── list_header_sep.png │ ├── max_min.png │ ├── max_min_h.png │ ├── menu.xml │ ├── menu_bk.png │ ├── menu_hot_bk.png │ ├── scroll.png │ ├── search_bg.png │ ├── skin.xml │ └── unchecked.png │ ├── RichListRes.zip │ ├── RichListRes │ ├── Common.bmp │ ├── Search.bmp │ ├── Slide_Progress2.bmp │ ├── Sort.bmp │ ├── TabButton.png │ ├── button.bmp │ ├── checked.png │ ├── color_ico.png │ ├── downlist_app.png │ ├── downlist_bk.png │ ├── downlist_fore.png │ ├── downlist_ok.png │ ├── downlist_pause.png │ ├── downlist_run.png │ ├── duilib.xml │ ├── func.bmp │ ├── garbage_ico.png │ ├── hand.cur │ ├── ico.png │ ├── lilbtn.bmp │ ├── logo.png │ ├── main.png │ ├── progress_back.png │ ├── progress_fore.png │ ├── resrc_btn.bmp │ ├── scrollbar.bmp │ ├── searchbar_bg.bmp │ ├── status.bmp │ ├── taskdetail_ico.png │ ├── toolbar │ │ ├── bk.bmp │ │ ├── del.png │ │ ├── del2.png │ │ ├── fav.png │ │ ├── new.png │ │ ├── ofenuse.png │ │ ├── offline_down.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── pause.png │ │ ├── pause2.png │ │ ├── setting.png │ │ ├── start.png │ │ ├── start2.png │ │ └── toolbutton.bmp │ ├── unchecked.png │ └── zoom.bmp │ ├── TestApp1 │ ├── Button │ │ ├── Button_Hot.png │ │ ├── Button_Non.png │ │ ├── RadioBtnNon.png │ │ ├── RadioBtnSel.png │ │ ├── Switch_A.png │ │ ├── Switch_B.png │ │ └── btn.png │ ├── Icon │ │ ├── Close.png │ │ ├── CtrlDemo.png │ │ ├── Expand.png │ │ ├── Icons.png │ │ ├── IndexHome.png │ │ ├── SearchIcon.png │ │ ├── card_user.png │ │ ├── checked.png │ │ ├── enter.png │ │ ├── list_icon_a.png │ │ ├── list_icon_b.png │ │ ├── main_search_normal.png │ │ ├── treeview_a.png │ │ ├── treeview_b.png │ │ ├── unchecked.png │ │ ├── user-card.png │ │ └── user-card_icon.png │ ├── bg.bmp │ ├── button_down.bmp │ ├── button_nor.bmp │ ├── button_over.bmp │ ├── fg.bmp │ ├── scrollbar.bmp │ ├── scrollbar.xml │ ├── test1.xml │ ├── thumb.bmp │ ├── voice_rect.png │ └── winbk.bmp │ ├── XMP │ ├── PlayPanel.xml │ ├── Playlist.xml │ ├── XMP.xml │ ├── bk_logo_image.png │ ├── bk_logo_light.png │ ├── bk_logo_text.png │ ├── bk_main.png │ ├── bk_music.png │ ├── bk_music_animate.png │ ├── btn_add.png │ ├── btn_bk.png │ ├── btn_clear.png │ ├── btn_close.png │ ├── btn_delete.png │ ├── btn_fast_backward.png │ ├── btn_fast_forward.png │ ├── btn_font.png │ ├── btn_login.png │ ├── btn_menu.png │ ├── btn_minmax.png │ ├── btn_next.png │ ├── btn_open.png │ ├── btn_open_mini.png │ ├── btn_pause.png │ ├── btn_play.png │ ├── btn_play_mode.png │ ├── btn_playlist.png │ ├── btn_playlist_hide.png │ ├── btn_previous.png │ ├── btn_refresh.png │ ├── btn_screen_full.png │ ├── btn_screen_normal.png │ ├── btn_search.png │ ├── btn_stop.png │ ├── btn_style.png │ ├── btn_style_close.png │ ├── btn_style_minmax.png │ ├── btn_volume.png │ ├── btn_volume_zero.png │ ├── caption.xml │ ├── caption_bk.png │ ├── combo_open.png │ ├── combo_right.png │ ├── edit_bk.png │ ├── light_top.png │ ├── log_min.png │ ├── logo_max.png │ ├── menu.xml │ ├── scroll.png │ ├── scrollbar.png │ ├── scrollbar.xml │ ├── slider │ │ ├── SliderBack.png │ │ ├── SliderBackVolume.png │ │ ├── SliderBar.png │ │ ├── SliderFore.png │ │ ├── SliderForeVolume.png │ │ ├── SliderPlayFore.png │ │ └── SliderPlayThumb.png │ ├── treeview_expand.png │ ├── treeview_header.png │ └── treeview_header_expand.png │ ├── def_skin │ ├── TreeCheckBox.png │ ├── TreeIcon.png │ ├── TreeToggle.png │ ├── bk_shadow.png │ ├── btn_normal_yellow.png │ ├── btn_sys_close.png │ ├── btn_sys_maximize.png │ ├── btn_sys_minimize.png │ ├── btn_sys_restore.png │ ├── btn_wnd_checkbox.png │ ├── btn_wnd_radio.png │ ├── busy1.png │ ├── check.png │ ├── dlg_bg_frame.png │ ├── dropbtn.png │ ├── face0.gif │ ├── focus_checkbox.png │ ├── focus_radio.png │ ├── icon2.png │ ├── icon3.png │ ├── icons.png │ ├── img_dlg_big_frame.png │ ├── img_edit_border.png │ ├── img_logo.ico │ ├── img_menu_bg.png │ ├── main_dlg_body.png │ ├── menu_split_horz.png │ ├── menuborder.png │ ├── menuskin.png │ ├── mini_progress_bar.png │ ├── mini_progress_bg.png │ ├── scrollbar.bmp │ ├── scrollbar.png │ ├── scrollbar2.png │ ├── slider.png │ ├── solve.bmp │ ├── split_horz.png │ ├── split_vert.png │ ├── tab_common.png │ ├── vscrollbar.png │ ├── webbtn_back.png │ ├── webbtn_forward.png │ └── webbtn_refresh.png │ └── duidemo │ ├── Icon │ ├── Close.png │ ├── CtrlDemo.png │ ├── Expand.png │ ├── Icons.png │ ├── IndexHome.png │ ├── SearchIcon.png │ ├── card_user.png │ ├── checked.png │ ├── enter.png │ ├── list_icon_a.png │ ├── list_icon_b.png │ ├── main_search_normal.png │ ├── treeview_a.png │ ├── treeview_b.png │ ├── unchecked.png │ ├── user-card.png │ └── user-card_icon.png │ ├── bg.png │ ├── button_hover.png │ ├── button_normal.png │ ├── button_pushed.png │ ├── combo.png │ ├── header_bk.png │ ├── hor_line.bmp │ ├── icon.png │ ├── list_header_bg.png │ ├── list_header_hot.png │ ├── list_header_pushed.png │ ├── list_header_sep.png │ ├── logo.png │ ├── scrollbar.bmp │ ├── skin.xml │ ├── sys_dlg_close.png │ ├── sys_dlg_max.png │ ├── sys_dlg_menu.png │ ├── sys_dlg_min.png │ ├── sys_dlg_restore.png │ ├── tabbar_hover.png │ ├── tabbar_normal.png │ └── tabbar_pushed.png ├── directui license.txt ├── doc ├── CActiveXUI类结构图.jpg ├── DUILIB帮助文档.chm ├── Duilib入门文档.doc ├── Duilib入门文档.pdf ├── duilib.jpg ├── opensource.txt ├── 属性列表.xml └── 总结-与用Duilib写的加法计算器.pdf ├── duidemo ├── ControlEx.h ├── Res │ ├── duidemo.ico │ └── duidemo.zip ├── Resource.h ├── duidemo.cpp ├── duidemo.h ├── duidemo.ico ├── duidemo.rc ├── duidemo.sln ├── duidemo.vcproj ├── small.ico ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── duilib license.txt ├── duilib.png ├── pdfDemo ├── PDFConvert2D.exe ├── data │ ├── Aspose.Cells.dll │ ├── Aspose.Pdf.dll │ ├── Aspose.Slides.dll │ ├── Aspose.Total.lic │ ├── Aspose.Words.dll │ └── Aspose.exe └── skin │ ├── button_hover.png │ ├── button_normal.png │ ├── button_pushed.png │ ├── checked.png │ ├── close1_hover.png │ ├── close1_normal.png │ ├── close1_press.png │ ├── combo.png │ ├── doc.png │ ├── gzh.jpg │ ├── help.png │ ├── horizontal_border.bmp │ ├── hoverArrow.png │ ├── html.png │ ├── icon.ico │ ├── icon.png │ ├── image.png │ ├── image2pdf.png │ ├── item.xml │ ├── list_header_bg.png │ ├── list_header_hot.png │ ├── list_header_pushed.png │ ├── list_header_sep.png │ ├── logo.png │ ├── main.xml │ ├── mainmenu_hover.png │ ├── mainmenu_normal.png │ ├── mainmenu_press.png │ ├── maximize_hover.png │ ├── maximize_normal.png │ ├── maximize_press.png │ ├── menu.xml │ ├── menu_bk.png │ ├── menulist.xml │ ├── minsize_hover.png │ ├── minsize_normal.png │ ├── minsize_press.png │ ├── new.png │ ├── normal_hover.png │ ├── normal_normal.png │ ├── normal_press.png │ ├── openfile.png │ ├── pageAbout.xml │ ├── pageConvert.xml │ ├── pageSetting.xml │ ├── pdf.png │ ├── ppt.png │ ├── rdlg.xml │ ├── reg.png │ ├── scrollbar_v.png │ ├── search_bg.png │ ├── setting.png │ ├── setting2.png │ ├── toolbar_hover.png │ ├── toolbar_normal.png │ ├── toolbar_pushed.png │ ├── txt.png │ ├── unchecked.png │ ├── vertical_border.bmp │ └── xls.png ├── 共享Demo ├── Duilib扩展交流,请先阅读ReadMeFirst.rar ├── FadeButton(基于Duilib 阳光不锈版本).rar ├── MFCDemo.rar ├── MP3Player.rar ├── OLE gif.7z ├── RichEditDemo.rar ├── duilib_add_zip_password(doublesword).rar ├── duilib_使用7z压缩资源.7z ├── duilib多标签浏览器demo_csk.zip ├── readme.txt ├── tooltip_patch.txt ├── 属性列表.zip └── 异形按钮.rar └── 属性列表.xml /360SafeDemo/360Safe.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/360SafeDemo/360Safe.cpp -------------------------------------------------------------------------------- /360SafeDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for 360SafeDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Date: 2012/9/17 4 | 5 | set(source_files 360safe.cpp stdafx.cpp) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 9 | add_executable(360safedemo ${source_files}) 10 | target_link_libraries(360safedemo duilib) 11 | set_target_properties(360safedemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 12 | 13 | add_custom_command(TARGET 360safedemo POST_BUILD 14 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 15 | ${PROJECT_BINARY_DIR}/bin/360safedemo.exe ${PROJECT_SOURCE_DIR}/bin/360safedemo.exe) 16 | -------------------------------------------------------------------------------- /360SafeDemo/ControlEx.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class ComputerExamineUI : public CContainerUI 4 | { 5 | public: 6 | ComputerExamineUI() 7 | { 8 | CDialogBuilder builder; 9 | CContainerUI* pComputerExamine = static_cast(builder.Create(_T("ComputerExamine.xml"), (UINT)0)); 10 | if( pComputerExamine ) { 11 | this->Add(pComputerExamine); 12 | } 13 | else { 14 | this->RemoveAll(); 15 | return; 16 | } 17 | } 18 | }; 19 | 20 | class CDialogBuilderCallbackEx : public IDialogBuilderCallback 21 | { 22 | public: 23 | CControlUI* CreateControl(LPCTSTR pstrClass) 24 | { 25 | if( _tcscmp(pstrClass, _T("ComputerExamine")) == 0 ) return new ComputerExamineUI; 26 | return NULL; 27 | } 28 | }; -------------------------------------------------------------------------------- /360SafeDemo/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // App.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | #if defined _M_IX86 8 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 9 | #elif defined _M_IA64 10 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 11 | #elif defined _M_X64 12 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 13 | #else 14 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 15 | #endif 16 | -------------------------------------------------------------------------------- /360SafeDemo/StdAfx.h: -------------------------------------------------------------------------------- 1 | 2 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 3 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ 4 | 5 | #pragma once 6 | 7 | #define WIN32_LEAN_AND_MEAN 8 | #define _CRT_SECURE_NO_DEPRECATE 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | #include "..\DuiLib\UIlib.h" 15 | 16 | using namespace DuiLib; 17 | 18 | #ifdef _DEBUG 19 | # ifdef _UNICODE 20 | # pragma comment(lib, "..\\Lib\\DuiLib_ud.lib") 21 | # else 22 | # pragma comment(lib, "..\\Lib\\DuiLib_d.lib") 23 | # endif 24 | #else 25 | # ifdef _UNICODE 26 | # pragma comment(lib, "..\\Lib\\DuiLib_u.lib") 27 | # else 28 | # pragma comment(lib, "..\\Lib\\DuiLib.lib") 29 | # endif 30 | #endif 31 | 32 | //{{AFX_INSERT_LOCATION}} 33 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 34 | 35 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 36 | -------------------------------------------------------------------------------- /DuiDesigner/ChildFrm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ChildFrm.cpp -------------------------------------------------------------------------------- /DuiDesigner/ChildFrm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ChildFrm.h -------------------------------------------------------------------------------- /DuiDesigner/ClassView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ClassView.cpp -------------------------------------------------------------------------------- /DuiDesigner/ClassView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ClassView.h -------------------------------------------------------------------------------- /DuiDesigner/DialogCheckUpdate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogCheckUpdate.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogCheckUpdate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogCheckUpdate.h -------------------------------------------------------------------------------- /DuiDesigner/DialogCustomFonts.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogCustomFonts.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogCustomFonts.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CDialogCustomFonts dialog 6 | 7 | class CDialogCustomFonts : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CDialogCustomFonts) 10 | 11 | public: 12 | CDialogCustomFonts(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CDialogCustomFonts(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_DIALOG_CUSTOM_FONTS }; 17 | 18 | private: 19 | CPaintManagerUI* m_pManager; 20 | 21 | protected: 22 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 23 | 24 | DECLARE_MESSAGE_MAP() 25 | public: 26 | virtual BOOL OnInitDialog(); 27 | CListCtrl m_lstCustomFonts; 28 | afx_msg void OnBnClickedButtonFontAdd(); 29 | afx_msg void OnBnClickedButtonFontDelete(); 30 | afx_msg void OnBnClickedButtonFontModify(); 31 | }; 32 | -------------------------------------------------------------------------------- /DuiDesigner/DialogDefaultAttribList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogDefaultAttribList.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogProjectNew.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogProjectNew.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogProjectNew.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogProjectNew.h -------------------------------------------------------------------------------- /DuiDesigner/DialogSaveAsName.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogSaveAsName.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogSaveAsName.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogSaveAsName.h -------------------------------------------------------------------------------- /DuiDesigner/DialogSkinFileNew.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogSkinFileNew.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogSkinFileNew.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "UIImagePreview.h" 4 | 5 | // CDialogSkinFileNew dialog 6 | 7 | class CDialogSkinFileNew : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CDialogSkinFileNew) 10 | 11 | public: 12 | CDialogSkinFileNew(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CDialogSkinFileNew(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_SKINFILE_NEW }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | 21 | public: 22 | CString& GetStyleFilePath(); 23 | 24 | private: 25 | void FindStyleFiles(CString& strDir); 26 | 27 | DECLARE_MESSAGE_MAP() 28 | public: 29 | CString m_strUITitle; 30 | 31 | private: 32 | CListBox m_lstStyles; 33 | CUIImagePreview m_StylePreview; 34 | CString m_strStyleFile; 35 | 36 | public: 37 | virtual BOOL OnInitDialog(); 38 | afx_msg void OnLbnSelchangeListStyle(); 39 | afx_msg void OnBnClickedOk(); 40 | }; 41 | -------------------------------------------------------------------------------- /DuiDesigner/DialogTemplateOpen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogTemplateOpen.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogTemplateOpen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogTemplateOpen.h -------------------------------------------------------------------------------- /DuiDesigner/DialogUIAttribEdit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogUIAttribEdit.cpp -------------------------------------------------------------------------------- /DuiDesigner/DialogUIAttribEdit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DialogUIAttribEdit.h -------------------------------------------------------------------------------- /DuiDesigner/DuiDesigner.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DuiDesigner.cpp -------------------------------------------------------------------------------- /DuiDesigner/DuiDesigner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DuiDesigner.h -------------------------------------------------------------------------------- /DuiDesigner/DuiDesigner.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DuiDesigner.rc -------------------------------------------------------------------------------- /DuiDesigner/DuiDesigner.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DuiDesigner.reg -------------------------------------------------------------------------------- /DuiDesigner/DuiDesigner.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/DuiDesigner.vcproj -------------------------------------------------------------------------------- /DuiDesigner/FileView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/FileView.cpp -------------------------------------------------------------------------------- /DuiDesigner/FileView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/FileView.h -------------------------------------------------------------------------------- /DuiDesigner/GlobalVariable.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class CGlobalVariable 4 | { 5 | public: 6 | CGlobalVariable(void); 7 | ~CGlobalVariable(void); 8 | 9 | public: 10 | static CString& GetCurPath(); 11 | static CString& GetTemplatesDir(); 12 | static CString& GetStylesDir(); 13 | 14 | public: 15 | static bool m_bIsProjectExist; 16 | static CString m_strProjectName; 17 | static CString m_strProjectPath; 18 | 19 | private: 20 | static CString m_strCurPath; 21 | static CString m_strTemplatesDir; 22 | static CString m_strStylesDir; 23 | }; 24 | -------------------------------------------------------------------------------- /DuiDesigner/HookAPI.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/HookAPI.cpp -------------------------------------------------------------------------------- /DuiDesigner/HookAPI.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/HookAPI.h -------------------------------------------------------------------------------- /DuiDesigner/ImageDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ImageDialog.cpp -------------------------------------------------------------------------------- /DuiDesigner/ImagePreview.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ImagePreview.cpp -------------------------------------------------------------------------------- /DuiDesigner/ImagePreview.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "../DuiLib/Core/UIRender.h" 3 | 4 | ////////////////////////////////////////////////////////////////////////// 5 | // CImagePreview 6 | 7 | class CImagePreview : public CStatic 8 | { 9 | DECLARE_DYNAMIC(CImagePreview) 10 | 11 | public: 12 | CImagePreview(); 13 | virtual ~CImagePreview(); 14 | 15 | public: 16 | void SetImageProperty(LPCTSTR pstrImage,CRect& rcDest,CRect& rcSource,CRect& rcCorner,COLORREF clrMask,int nFade,BOOL bHole); 17 | LPCTSTR GetImageProperty() const { return m_strProperty; } 18 | void SetManager(CPaintManagerUI* pManager); 19 | 20 | private: 21 | CString m_strImage; 22 | CString m_strProperty; 23 | CRect m_rcImage; 24 | CPaintManagerUI* m_pManager; 25 | 26 | protected: 27 | DECLARE_MESSAGE_MAP() 28 | public: 29 | afx_msg void OnPaint(); 30 | }; 31 | 32 | 33 | -------------------------------------------------------------------------------- /DuiDesigner/LayoutManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/LayoutManager.cpp -------------------------------------------------------------------------------- /DuiDesigner/MainFrm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/MainFrm.cpp -------------------------------------------------------------------------------- /DuiDesigner/MainFrm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/MainFrm.h -------------------------------------------------------------------------------- /DuiDesigner/PropertiesWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/PropertiesWnd.cpp -------------------------------------------------------------------------------- /DuiDesigner/PropertiesWnd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/PropertiesWnd.h -------------------------------------------------------------------------------- /DuiDesigner/PropertyTabLayoutUI.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/PropertyTabLayoutUI.cpp -------------------------------------------------------------------------------- /DuiDesigner/ReadMe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ReadMe.txt -------------------------------------------------------------------------------- /DuiDesigner/ToolBoxCtrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ToolBoxCtrl.cpp -------------------------------------------------------------------------------- /DuiDesigner/ToolBoxWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ToolBoxWnd.cpp -------------------------------------------------------------------------------- /DuiDesigner/ToolBoxWnd.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "ToolBoxCtrl.h" 3 | 4 | // CToolBoxWnd 5 | 6 | class CToolBoxWnd : public CDockablePane 7 | { 8 | DECLARE_DYNAMIC(CToolBoxWnd) 9 | 10 | public: 11 | CToolBoxWnd(); 12 | virtual ~CToolBoxWnd(); 13 | 14 | protected: 15 | CToolBoxCtrl m_ctlToolList; 16 | 17 | public: 18 | CToolElement* GetCurSel() const { return m_ctlToolList.GetCurSel(); } 19 | void SetCurSel(int nClass,BOOL bRedraw=TRUE) { m_ctlToolList.SetCurSel(nClass,bRedraw); } 20 | 21 | protected: 22 | void AdjustLayout(); 23 | void InitToolList(); 24 | 25 | protected: 26 | DECLARE_MESSAGE_MAP() 27 | public: 28 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 29 | afx_msg void OnSize(UINT nType, int cx, int cy); 30 | }; 31 | 32 | 33 | -------------------------------------------------------------------------------- /DuiDesigner/UIDesignerDoc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UIDesignerDoc.cpp -------------------------------------------------------------------------------- /DuiDesigner/UIDesignerDoc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UIDesignerDoc.h -------------------------------------------------------------------------------- /DuiDesigner/UIDesignerView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UIDesignerView.cpp -------------------------------------------------------------------------------- /DuiDesigner/UIDesignerView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UIDesignerView.h -------------------------------------------------------------------------------- /DuiDesigner/UIImagePreview.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UIImagePreview.cpp -------------------------------------------------------------------------------- /DuiDesigner/UIImagePreview.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | // CUIImagePreview 5 | 6 | class CUIImagePreview : public CStatic 7 | { 8 | DECLARE_DYNAMIC(CUIImagePreview) 9 | 10 | public: 11 | CUIImagePreview(); 12 | virtual ~CUIImagePreview(); 13 | 14 | private: 15 | CImage m_imgPreview; 16 | 17 | public: 18 | void SetPreviewImage(LPCTSTR pstrImage); 19 | 20 | protected: 21 | DECLARE_MESSAGE_MAP() 22 | public: 23 | afx_msg void OnPaint(); 24 | }; -------------------------------------------------------------------------------- /DuiDesigner/UIProperties.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UIProperties.cpp -------------------------------------------------------------------------------- /DuiDesigner/UserImages.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/UserImages.bmp -------------------------------------------------------------------------------- /DuiDesigner/ViewTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ViewTree.cpp -------------------------------------------------------------------------------- /DuiDesigner/ViewTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/ViewTree.h -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Active.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Active.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Button.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Button.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Combo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Combo.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Container.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Container.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Control.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Control.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Edit.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Edit.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/HorizontalLayout.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/HorizontalLayout.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Label.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Label.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Option.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Option.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Pointer.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Pointer.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Progress.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Progress.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/ScrollBar.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/ScrollBar.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Slider.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Slider.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/TabLayout.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/TabLayout.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/Text.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/Text.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/TileLayout.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/TileLayout.ico -------------------------------------------------------------------------------- /DuiDesigner/res/ToolBox/VerticalLayout.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/ToolBox/VerticalLayout.ico -------------------------------------------------------------------------------- /DuiDesigner/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/Toolbar.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/Toolbar256.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/Toolbar256.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/Toolbar_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/Toolbar_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/UIDesigner.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/UIDesigner.ico -------------------------------------------------------------------------------- /DuiDesigner/res/UIDesigner.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/UIDesigner.rc2 -------------------------------------------------------------------------------- /DuiDesigner/res/UIDesignerDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/UIDesignerDoc.ico -------------------------------------------------------------------------------- /DuiDesigner/res/banner.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/banner.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/class_view.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/class_view.ico -------------------------------------------------------------------------------- /DuiDesigner/res/class_view_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/class_view_hc.ico -------------------------------------------------------------------------------- /DuiDesigner/res/classview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/classview.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/classview_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/classview_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/explorer.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/explorer.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/explorer_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/explorer_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/file_view.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/file_view.ico -------------------------------------------------------------------------------- /DuiDesigner/res/file_view_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/file_view_hc.ico -------------------------------------------------------------------------------- /DuiDesigner/res/fileview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/fileview.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/fileview_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/fileview_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/formedit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/formedit.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/formedit_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/formedit_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/menuimages.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/menuimages.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/menuimages_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/menuimages_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/movehandle.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/movehandle.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/properties.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/properties.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/properties_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/properties_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/properties_wnd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/properties_wnd.ico -------------------------------------------------------------------------------- /DuiDesigner/res/properties_wnd_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/properties_wnd_hc.ico -------------------------------------------------------------------------------- /DuiDesigner/res/res_view.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/res_view.ico -------------------------------------------------------------------------------- /DuiDesigner/res/res_view_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/res_view_hc.ico -------------------------------------------------------------------------------- /DuiDesigner/res/resource.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/resource.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/resource24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/resource24.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/sort.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/sort.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/sort_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/sort_hc.bmp -------------------------------------------------------------------------------- /DuiDesigner/res/toolbox_wnd_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/toolbox_wnd_hc.ico -------------------------------------------------------------------------------- /DuiDesigner/res/uimenu.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/res/uimenu.bmp -------------------------------------------------------------------------------- /DuiDesigner/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/stdafx.cpp -------------------------------------------------------------------------------- /DuiDesigner/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/stdafx.h -------------------------------------------------------------------------------- /DuiDesigner/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/targetver.h -------------------------------------------------------------------------------- /DuiDesigner/third_party/tinyxml/tinystr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiDesigner/third_party/tinyxml/tinystr.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIActiveX.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIActiveX.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UICheckBox.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "UICheckBox.h" 3 | 4 | namespace DuiLib 5 | { 6 | LPCTSTR CCheckBoxUI::GetClass() const 7 | { 8 | return _T("CheckBoxUI"); 9 | } 10 | 11 | void CCheckBoxUI::SetCheck(bool bCheck) 12 | { 13 | Selected(bCheck); 14 | } 15 | 16 | bool CCheckBoxUI::GetCheck() const 17 | { 18 | return IsSelected(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /DuiLib/Control/UICheckBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UICheckBox.h -------------------------------------------------------------------------------- /DuiLib/Control/UICombo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UICombo.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIComboBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIComboBox.h -------------------------------------------------------------------------------- /DuiLib/Control/UIDateTime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIDateTime.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIDateTime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIDateTime.h -------------------------------------------------------------------------------- /DuiLib/Control/UIFlash.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIFlash.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIFlash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIFlash.h -------------------------------------------------------------------------------- /DuiLib/Control/UIList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIList.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIList.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIList.h -------------------------------------------------------------------------------- /DuiLib/Control/UIProgress.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIPROGRESS_H__ 2 | #define __UIPROGRESS_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CProgressUI : public CLabelUI 9 | { 10 | public: 11 | CProgressUI(); 12 | 13 | LPCTSTR GetClass() const; 14 | LPVOID GetInterface(LPCTSTR pstrName); 15 | 16 | bool IsHorizontal(); 17 | void SetHorizontal(bool bHorizontal = true); 18 | bool IsStretchForeImage(); 19 | void SetStretchForeImage(bool bStretchForeImage = true); 20 | int GetMinValue() const; 21 | void SetMinValue(int nMin); 22 | int GetMaxValue() const; 23 | void SetMaxValue(int nMax); 24 | int GetValue() const; 25 | void SetValue(int nValue); 26 | LPCTSTR GetForeImage() const; 27 | void SetForeImage(LPCTSTR pStrImage); 28 | 29 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 30 | void PaintStatusImage(HDC hDC); 31 | 32 | protected: 33 | bool m_bHorizontal; 34 | bool m_bStretchForeImage; 35 | int m_nMax; 36 | int m_nMin; 37 | int m_nValue; 38 | 39 | CDuiString m_sForeImage; 40 | CDuiString m_sForeImageModify; 41 | }; 42 | 43 | } // namespace DuiLib 44 | 45 | #endif // __UIPROGRESS_H__ 46 | -------------------------------------------------------------------------------- /DuiLib/Control/UIRichEdit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIRichEdit.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIRichEdit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIRichEdit.h -------------------------------------------------------------------------------- /DuiLib/Control/UIText.h: -------------------------------------------------------------------------------- 1 | #ifndef __UITEXT_H__ 2 | #define __UITEXT_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CTextUI : public CLabelUI 9 | { 10 | public: 11 | CTextUI(); 12 | ~CTextUI(); 13 | 14 | LPCTSTR GetClass() const; 15 | UINT GetControlFlags() const; 16 | LPVOID GetInterface(LPCTSTR pstrName); 17 | 18 | CDuiString* GetLinkContent(int iIndex); 19 | 20 | void DoEvent(TEventUI& event); 21 | SIZE EstimateSize(SIZE szAvailable); 22 | 23 | void PaintText(HDC hDC); 24 | 25 | protected: 26 | enum { MAX_LINK = 8 }; 27 | int m_nLinks; 28 | RECT m_rcLinks[MAX_LINK]; 29 | CDuiString m_sLinks[MAX_LINK]; 30 | int m_nHoverLink; 31 | }; 32 | 33 | } // namespace DuiLib 34 | 35 | #endif //__UITEXT_H__ -------------------------------------------------------------------------------- /DuiLib/Control/UITreeView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UITreeView.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIWebBrowser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIWebBrowser.cpp -------------------------------------------------------------------------------- /DuiLib/Control/UIWebBrowser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Control/UIWebBrowser.h -------------------------------------------------------------------------------- /DuiLib/Core/UIBase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIBase.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIBase.h -------------------------------------------------------------------------------- /DuiLib/Core/UIContainer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIContainer.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIContainer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIContainer.h -------------------------------------------------------------------------------- /DuiLib/Core/UIControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIControl.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIControl.h -------------------------------------------------------------------------------- /DuiLib/Core/UIDefine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIDefine.h -------------------------------------------------------------------------------- /DuiLib/Core/UIDlgBuilder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIDlgBuilder.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIMarkup.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIMarkup.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIRender.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIRender.cpp -------------------------------------------------------------------------------- /DuiLib/Core/UIRender.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Core/UIRender.h -------------------------------------------------------------------------------- /DuiLib/Layout/UIChildLayout.h: -------------------------------------------------------------------------------- 1 | #ifndef __UICHILDLAYOUT_H__ 2 | #define __UICHILDLAYOUT_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CChildLayoutUI : public CContainerUI 9 | { 10 | public: 11 | CChildLayoutUI(); 12 | 13 | void Init(); 14 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 15 | void SetChildLayoutXML(CDuiString pXML); 16 | DuiLib::CDuiString GetChildLayoutXML(); 17 | virtual LPVOID GetInterface(LPCTSTR pstrName); 18 | virtual LPCTSTR GetClass() const; 19 | 20 | private: 21 | DuiLib::CDuiString m_pstrXMLFile; 22 | }; 23 | } // namespace DuiLib 24 | #endif // __UICHILDLAYOUT_H__ 25 | -------------------------------------------------------------------------------- /DuiLib/Layout/UIHorizontalLayout.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIHORIZONTALLAYOUT_H__ 2 | #define __UIHORIZONTALLAYOUT_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CHorizontalLayoutUI : public CContainerUI 9 | { 10 | public: 11 | CHorizontalLayoutUI(); 12 | 13 | LPCTSTR GetClass() const; 14 | LPVOID GetInterface(LPCTSTR pstrName); 15 | UINT GetControlFlags() const; 16 | 17 | void SetSepWidth(int iWidth); 18 | int GetSepWidth() const; 19 | void SetSepImmMode(bool bImmediately); 20 | bool IsSepImmMode() const; 21 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 22 | void DoEvent(TEventUI& event); 23 | 24 | void SetPos(RECT rc); 25 | void DoPostPaint(HDC hDC, const RECT& rcPaint); 26 | 27 | RECT GetThumbRect(bool bUseNew = false) const; 28 | 29 | protected: 30 | int m_iSepWidth; 31 | UINT m_uButtonState; 32 | POINT ptLastMouse; 33 | RECT m_rcNewPos; 34 | bool m_bImmMode; 35 | }; 36 | } 37 | #endif // __UIHORIZONTALLAYOUT_H__ 38 | -------------------------------------------------------------------------------- /DuiLib/Layout/UITabLayout.h: -------------------------------------------------------------------------------- 1 | #ifndef __UITABLAYOUT_H__ 2 | #define __UITABLAYOUT_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CTabLayoutUI : public CContainerUI 9 | { 10 | public: 11 | CTabLayoutUI(); 12 | 13 | LPCTSTR GetClass() const; 14 | LPVOID GetInterface(LPCTSTR pstrName); 15 | 16 | bool Add(CControlUI* pControl); 17 | bool AddAt(CControlUI* pControl, int iIndex); 18 | bool Remove(CControlUI* pControl); 19 | void RemoveAll(); 20 | int GetCurSel() const; 21 | bool SelectItem(int iIndex); 22 | bool SelectItem(CControlUI* pControl); 23 | 24 | void SetPos(RECT rc); 25 | 26 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 27 | 28 | protected: 29 | int m_iCurSel; 30 | }; 31 | } 32 | #endif // __UITABLAYOUT_H__ 33 | -------------------------------------------------------------------------------- /DuiLib/Layout/UITileLayout.h: -------------------------------------------------------------------------------- 1 | #ifndef __UITILELAYOUT_H__ 2 | #define __UITILELAYOUT_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CTileLayoutUI : public CContainerUI 9 | { 10 | public: 11 | CTileLayoutUI(); 12 | 13 | LPCTSTR GetClass() const; 14 | LPVOID GetInterface(LPCTSTR pstrName); 15 | 16 | void SetPos(RECT rc); 17 | 18 | SIZE GetItemSize() const; 19 | void SetItemSize(SIZE szItem); 20 | int GetColumns() const; 21 | void SetColumns(int nCols); 22 | 23 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 24 | 25 | protected: 26 | SIZE m_szItem; 27 | int m_nColumns; 28 | }; 29 | } 30 | #endif // __UITILELAYOUT_H__ 31 | -------------------------------------------------------------------------------- /DuiLib/Layout/UIVerticalLayout.h: -------------------------------------------------------------------------------- 1 | #ifndef __UIVERTICALLAYOUT_H__ 2 | #define __UIVERTICALLAYOUT_H__ 3 | 4 | #pragma once 5 | 6 | namespace DuiLib 7 | { 8 | class UILIB_API CVerticalLayoutUI : public CContainerUI 9 | { 10 | public: 11 | CVerticalLayoutUI(); 12 | 13 | LPCTSTR GetClass() const; 14 | LPVOID GetInterface(LPCTSTR pstrName); 15 | UINT GetControlFlags() const; 16 | 17 | void SetSepHeight(int iHeight); 18 | int GetSepHeight() const; 19 | void SetSepImmMode(bool bImmediately); 20 | bool IsSepImmMode() const; 21 | void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); 22 | void DoEvent(TEventUI& event); 23 | 24 | void SetPos(RECT rc); 25 | void DoPostPaint(HDC hDC, const RECT& rcPaint); 26 | 27 | RECT GetThumbRect(bool bUseNew = false) const; 28 | 29 | protected: 30 | int m_iSepHeight; 31 | UINT m_uButtonState; 32 | POINT ptLastMouse; 33 | RECT m_rcNewPos; 34 | bool m_bImmMode; 35 | }; 36 | } 37 | #endif // __UIVERTICALLAYOUT_H__ 38 | -------------------------------------------------------------------------------- /DuiLib/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // UIlib.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "StdAfx.h" 6 | 7 | 8 | #pragma comment( lib, "winmm.lib" ) 9 | #pragma comment( lib, "comctl32.lib" ) 10 | -------------------------------------------------------------------------------- /DuiLib/StdAfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/StdAfx.h -------------------------------------------------------------------------------- /DuiLib/Utils/Flash11.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Utils/Flash11.tlb -------------------------------------------------------------------------------- /DuiLib/Utils/FlashEventHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Utils/FlashEventHandler.h -------------------------------------------------------------------------------- /DuiLib/Utils/Utils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Utils/Utils.cpp -------------------------------------------------------------------------------- /DuiLib/Utils/WebBrowserEventHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Utils/WebBrowserEventHandler.h -------------------------------------------------------------------------------- /DuiLib/Utils/WinImplBase.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Utils/WinImplBase.cpp -------------------------------------------------------------------------------- /DuiLib/Utils/WinImplBase.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/DuiLib/Utils/WinImplBase.h -------------------------------------------------------------------------------- /FileTree/FileTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/FileTree.cpp -------------------------------------------------------------------------------- /FileTree/FileTree.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /FileTree/FileTree.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/FileTree.ico -------------------------------------------------------------------------------- /FileTree/FileTree.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/FileTree.rc -------------------------------------------------------------------------------- /FileTree/FileTree.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/FileTree.vcproj -------------------------------------------------------------------------------- /FileTree/MainDialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/MainDialog.cpp -------------------------------------------------------------------------------- /FileTree/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/Resource.h -------------------------------------------------------------------------------- /FileTree/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/small.ico -------------------------------------------------------------------------------- /FileTree/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/stdafx.cpp -------------------------------------------------------------------------------- /FileTree/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/stdafx.h -------------------------------------------------------------------------------- /FileTree/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FileTree/targetver.h -------------------------------------------------------------------------------- /FlashDemo/App.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/FlashDemo/App.cpp -------------------------------------------------------------------------------- /FlashDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for FlashDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Created: 2012/9/17 4 | 5 | set(source_files App.cpp StdAfx.cpp) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 9 | add_executable(FlashDemo ${source_files}) 10 | target_link_libraries(FlashDemo duilib) 11 | set_target_properties(FlashDemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 12 | 13 | add_custom_command(TARGET FlashDemo POST_BUILD 14 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 15 | ${PROJECT_BINARY_DIR}/bin/FlashDemo.exe ${PROJECT_SOURCE_DIR}/bin/FlashDemo.exe) 16 | -------------------------------------------------------------------------------- /FlashDemo/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // App.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | #if defined _M_IX86 8 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 9 | #elif defined _M_IA64 10 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 11 | #elif defined _M_X64 12 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 13 | #else 14 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 15 | #endif 16 | -------------------------------------------------------------------------------- /FlashDemo/StdAfx.h: -------------------------------------------------------------------------------- 1 | 2 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 3 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ 4 | 5 | #pragma once 6 | 7 | #define WIN32_LEAN_AND_MEAN 8 | #define _CRT_SECURE_NO_DEPRECATE 9 | 10 | #include 11 | #include 12 | 13 | #include "..\DuiLib\UIlib.h" 14 | 15 | using namespace DuiLib; 16 | 17 | #ifdef _DEBUG 18 | # ifdef _UNICODE 19 | # pragma comment(lib, "..\\Lib\\DuiLib_ud.lib") 20 | # else 21 | # pragma comment(lib, "..\\Lib\\DuiLib_d.lib") 22 | # endif 23 | #else 24 | # ifdef _UNICODE 25 | # pragma comment(lib, "..\\Lib\\DuiLib_u.lib") 26 | # else 27 | # pragma comment(lib, "..\\Lib\\DuiLib.lib") 28 | # endif 29 | #endif 30 | 31 | 32 | //{{AFX_INSERT_LOCATION}} 33 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 34 | 35 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 36 | -------------------------------------------------------------------------------- /GameDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for GameDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Created: 2012/9/17 4 | 5 | set(source_files GameDemo.cpp MiniDumper.cpp stdAfx.cpp) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 9 | add_executable(GameDemo ${source_files}) 10 | target_link_libraries(GameDemo duilib) 11 | set_target_properties(GameDemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 12 | 13 | add_custom_command(TARGET GameDemo POST_BUILD 14 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 15 | ${PROJECT_BINARY_DIR}/bin/GameDemo.exe ${PROJECT_SOURCE_DIR}/bin/GameDemo.exe) 16 | -------------------------------------------------------------------------------- /GameDemo/ControlEx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/GameDemo/ControlEx.h -------------------------------------------------------------------------------- /GameDemo/GameDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/GameDemo/GameDemo.cpp -------------------------------------------------------------------------------- /GameDemo/MiniDumper.h: -------------------------------------------------------------------------------- 1 | #ifndef MINIDUMPER_H 2 | #define MINIDUMPER_H 3 | 4 | #include 5 | 6 | class CMiniDumper 7 | { 8 | public: 9 | 10 | CMiniDumper(bool bPromptUserForMiniDump); 11 | ~CMiniDumper(void); 12 | 13 | private: 14 | 15 | static LONG WINAPI unhandledExceptionHandler(struct _EXCEPTION_POINTERS *pExceptionInfo); 16 | void setMiniDumpFileName(void); 17 | bool getImpersonationToken(HANDLE* phToken); 18 | BOOL enablePrivilege(LPCTSTR pszPriv, HANDLE hToken, TOKEN_PRIVILEGES* ptpOld); 19 | BOOL restorePrivilege(HANDLE hToken, TOKEN_PRIVILEGES* ptpOld); 20 | LONG writeMiniDump(_EXCEPTION_POINTERS *pExceptionInfo ); 21 | 22 | _EXCEPTION_POINTERS *m_pExceptionInfo; 23 | TCHAR m_szMiniDumpPath[MAX_PATH]; 24 | TCHAR m_szAppPath[MAX_PATH]; 25 | TCHAR m_szAppBaseName[MAX_PATH]; 26 | bool m_bPromptUserForMiniDump; 27 | 28 | static CMiniDumper* s_pMiniDumper; 29 | static LPCRITICAL_SECTION s_pCriticalSection; 30 | }; 31 | 32 | #endif // MINIDUMPER_H 33 | -------------------------------------------------------------------------------- /GameDemo/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // App.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | #if defined _M_IX86 8 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 9 | #elif defined _M_IA64 10 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 11 | #elif defined _M_X64 12 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 13 | #else 14 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 15 | #endif 16 | -------------------------------------------------------------------------------- /GameDemo/StdAfx.h: -------------------------------------------------------------------------------- 1 | 2 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 3 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ 4 | 5 | #pragma once 6 | 7 | #define WIN32_LEAN_AND_MEAN 8 | #define _CRT_SECURE_NO_DEPRECATE 9 | 10 | // Required for VS 2008 (fails on XP and Win2000 without this fix) 11 | #ifndef _WIN32_WINNT 12 | #define _WIN32_WINNT 0x0500 13 | #endif 14 | 15 | #include 16 | #include 17 | 18 | #include "..\DuiLib\UIlib.h" 19 | 20 | using namespace DuiLib; 21 | 22 | #ifdef _DEBUG 23 | # ifdef _UNICODE 24 | # pragma comment(lib, "..\\Lib\\DuiLib_ud.lib") 25 | # else 26 | # pragma comment(lib, "..\\Lib\\DuiLib_d.lib") 27 | # endif 28 | #else 29 | # ifdef _UNICODE 30 | # pragma comment(lib, "..\\Lib\\DuiLib_u.lib") 31 | # else 32 | # pragma comment(lib, "..\\Lib\\DuiLib.lib") 33 | # endif 34 | #endif 35 | 36 | 37 | //{{AFX_INSERT_LOCATION}} 38 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 39 | 40 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 41 | -------------------------------------------------------------------------------- /Lib/duilib_m.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/Lib/duilib_m.lib -------------------------------------------------------------------------------- /Lib/duilib_md.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/Lib/duilib_md.lib -------------------------------------------------------------------------------- /ListDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for ListDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Created: 2012/9/17 4 | 5 | set(source_files Main.cpp) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 9 | add_executable(ListDemo ${source_files}) 10 | target_link_libraries(ListDemo duilib) 11 | set_target_properties(ListDemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 12 | 13 | add_custom_command(TARGET ListDemo POST_BUILD 14 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 15 | ${PROJECT_BINARY_DIR}/bin/ListDemo.exe ${PROJECT_SOURCE_DIR}/bin/ListDemo.exe) 16 | -------------------------------------------------------------------------------- /ListDemo/Main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/ListDemo/Main.cpp -------------------------------------------------------------------------------- /ListExtension/ListEx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/ListExtension/ListEx.cpp -------------------------------------------------------------------------------- /ListExtension/ListEx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/ListExtension/ListEx.h -------------------------------------------------------------------------------- /ListExtension/ListExMain.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "ListExMainWnd.h" 3 | 4 | int WINAPI WinMain(HINSTANCE hInstance, 5 | HINSTANCE hPrevInstance, 6 | LPSTR lpCmdLine, 7 | int iCmdShow) 8 | { 9 | CPaintManagerUI::SetInstance(hInstance); 10 | 11 | HRESULT Hr = ::CoInitialize(NULL); 12 | if( FAILED(Hr) ) return 0; 13 | 14 | CListExMainWnd* pFrame = new CListExMainWnd(); 15 | if( pFrame == NULL ) return 0; 16 | pFrame->Create(NULL, _T("ListExDemo"), UI_WNDSTYLE_DIALOG, 0L); 17 | pFrame->CenterWindow(); 18 | pFrame->ShowWindow(true); 19 | 20 | CPaintManagerUI::MessageLoop(); 21 | 22 | ::CoUninitialize(); 23 | return 0; 24 | } -------------------------------------------------------------------------------- /ListExtension/ListExMainWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/ListExtension/ListExMainWnd.cpp -------------------------------------------------------------------------------- /ListExtension/ListExMainWnd.h: -------------------------------------------------------------------------------- 1 | #ifndef LISTEX_MAINWND_H 2 | #define LISTEX_MAINWND_H 3 | 4 | class CListExMainWnd:public WindowImplBase 5 | { 6 | public: 7 | CListExMainWnd(); 8 | virtual ~CListExMainWnd(); 9 | 10 | virtual void OnFinalMessage(HWND hWnd); 11 | 12 | virtual CDuiString GetSkinFolder(); 13 | virtual CDuiString GetSkinFile(); 14 | virtual UILIB_RESOURCETYPE GetResourceType() const; 15 | 16 | virtual LPCTSTR GetWindowClassName(void) const; 17 | virtual UINT GetClassStyle() const; 18 | virtual void Notify(TNotifyUI &msg); 19 | 20 | virtual void InitWindow(); 21 | 22 | protected: 23 | 24 | HRESULT EnableBlurBehind(HRGN hRgn); 25 | 26 | static int CALLBACK ListSortItems(UINT_PTR data1, UINT_PTR data2, UINT_PTR userDef); 27 | 28 | DUI_DECLARE_MESSAGE_MAP() 29 | virtual void OnClick(TNotifyUI& msg); 30 | virtual void OnHeaderClick(TNotifyUI& msg); 31 | private: 32 | CButtonUI *m_pMinBtn; 33 | CButtonUI *m_pCloseBtn; 34 | }; 35 | #endif -------------------------------------------------------------------------------- /ListExtension/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/ListExtension/stdafx.cpp -------------------------------------------------------------------------------- /ListExtension/stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 3 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ 4 | 5 | #pragma once 6 | 7 | #define WIN32_LEAN_AND_MEAN 8 | #define _CRT_SECURE_NO_DEPRECATE 9 | 10 | #include 11 | #include 12 | 13 | #include "..\DuiLib\UIlib.h" 14 | 15 | using namespace DuiLib; 16 | 17 | #ifdef _DEBUG 18 | # ifdef _UNICODE 19 | # pragma comment(lib, "..\\Lib\\DuiLib_ud.lib") 20 | # else 21 | # pragma comment(lib, "..\\Lib\\DuiLib_d.lib") 22 | # endif 23 | #else 24 | # ifdef _UNICODE 25 | # pragma comment(lib, "..\\Lib\\DuiLib_u.lib") 26 | # else 27 | # pragma comment(lib, "..\\Lib\\DuiLib.lib") 28 | # endif 29 | #endif 30 | 31 | #pragma warning(disable:4996) 32 | 33 | //{{AFX_INSERT_LOCATION}} 34 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 35 | 36 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 37 | -------------------------------------------------------------------------------- /MenuDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for MenuDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Created: 2012/9/17 4 | 5 | aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 9 | 10 | add_executable(MenuDemo ${SRC} MenuDemo.rc) 11 | set_target_properties(MenuDemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 12 | target_link_libraries(MenuDemo duilib) 13 | 14 | 15 | add_custom_command(TARGET MenuDemo POST_BUILD 16 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 17 | ${PROJECT_BINARY_DIR}/bin/MenuDemo.exe ${PROJECT_SOURCE_DIR}/bin/MenuDemo.exe) 18 | -------------------------------------------------------------------------------- /MenuDemo/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // App.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" -------------------------------------------------------------------------------- /MenuDemo/res/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/button.png -------------------------------------------------------------------------------- /MenuDemo/res/button_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/button_h.png -------------------------------------------------------------------------------- /MenuDemo/res/button_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/button_p.png -------------------------------------------------------------------------------- /MenuDemo/res/checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/checkbox.png -------------------------------------------------------------------------------- /MenuDemo/res/checkbox_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/checkbox_h.png -------------------------------------------------------------------------------- /MenuDemo/res/checkbox_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/checkbox_p.png -------------------------------------------------------------------------------- /MenuDemo/res/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/close.png -------------------------------------------------------------------------------- /MenuDemo/res/close_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/close_h.png -------------------------------------------------------------------------------- /MenuDemo/res/close_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/close_p.png -------------------------------------------------------------------------------- /MenuDemo/res/combo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/combo.png -------------------------------------------------------------------------------- /MenuDemo/res/maximize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/maximize.png -------------------------------------------------------------------------------- /MenuDemo/res/maximize_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/maximize_h.png -------------------------------------------------------------------------------- /MenuDemo/res/maximize_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/maximize_p.png -------------------------------------------------------------------------------- /MenuDemo/res/menu_bk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/menu_bk.png -------------------------------------------------------------------------------- /MenuDemo/res/minimize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/minimize.png -------------------------------------------------------------------------------- /MenuDemo/res/minimize_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/minimize_h.png -------------------------------------------------------------------------------- /MenuDemo/res/minimize_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/minimize_p.png -------------------------------------------------------------------------------- /MenuDemo/res/radio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/radio.png -------------------------------------------------------------------------------- /MenuDemo/res/radio_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/radio_h.png -------------------------------------------------------------------------------- /MenuDemo/res/radio_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/radio_p.png -------------------------------------------------------------------------------- /MenuDemo/res/restore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/restore.png -------------------------------------------------------------------------------- /MenuDemo/res/restore_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/restore_h.png -------------------------------------------------------------------------------- /MenuDemo/res/restore_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/restore_p.png -------------------------------------------------------------------------------- /MenuDemo/res/scrollbar_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/scrollbar_v.png -------------------------------------------------------------------------------- /MenuDemo/res/slider_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/slider_bg.png -------------------------------------------------------------------------------- /MenuDemo/res/slider_fg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/slider_fg.png -------------------------------------------------------------------------------- /MenuDemo/res/slider_thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/slider_thumb.png -------------------------------------------------------------------------------- /MenuDemo/res/tree_expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/MenuDemo/res/tree_expand.png -------------------------------------------------------------------------------- /QQDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for QQDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Created: 2012/9/17 4 | 5 | aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | 9 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 10 | add_executable(QQDemo ${SRC} QQDemo.rc) 11 | set_target_properties(QQDemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 12 | target_link_libraries(QQDemo duilib) 13 | 14 | 15 | add_custom_command(TARGET QQDemo POST_BUILD 16 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 17 | ${PROJECT_BINARY_DIR}/bin/QQDemo.exe ${PROJECT_SOURCE_DIR}/bin/QQDemo.exe) 18 | -------------------------------------------------------------------------------- /QQDemo/ColorPicker.hpp: -------------------------------------------------------------------------------- 1 | #ifndef COLORPICKER_HPP 2 | #define COLORPICKER_HPP 3 | #include "..\DuiLib\Utils\WinImplBase.h" 4 | 5 | class ChatDialog; 6 | class CColorPicker : public WindowImplBase 7 | { 8 | public: 9 | CColorPicker(ChatDialog* chat_dialog, POINT ptMouse); 10 | 11 | LPCTSTR GetWindowClassName() const; 12 | 13 | virtual void OnFinalMessage(HWND hWnd); 14 | 15 | void Notify(TNotifyUI& msg); 16 | 17 | void InitWindow(); 18 | 19 | virtual CDuiString GetSkinFile(); 20 | 21 | virtual CDuiString GetSkinFolder(); 22 | 23 | virtual LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 24 | 25 | private: 26 | POINT based_point_; 27 | ChatDialog* chat_dialog_; 28 | }; 29 | 30 | #endif // COLORPICKER_HPP -------------------------------------------------------------------------------- /QQDemo/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // App.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" -------------------------------------------------------------------------------- /QQDemo/UIListCommonDefine.hpp: -------------------------------------------------------------------------------- 1 | #ifndef UILISTCOMMONDEFINE_HPP 2 | #define UILISTCOMMONDEFINE_HPP 3 | 4 | #include 5 | 6 | namespace DuiLib 7 | { 8 | 9 | struct NodeData 10 | { 11 | int level_; 12 | bool folder_; 13 | bool child_visible_; 14 | bool has_child_; 15 | CDuiString text_; 16 | CDuiString value; 17 | CListContainerElementUI* list_elment_; 18 | }; 19 | 20 | double CalculateDelay(double state); 21 | 22 | class Node 23 | { 24 | public: 25 | Node(); 26 | explicit Node(NodeData t); 27 | Node(NodeData t, Node* parent); 28 | ~Node(); 29 | NodeData& data(); 30 | int num_children() const; 31 | Node* child(int i); 32 | Node* parent(); 33 | bool folder() const; 34 | bool has_children() const; 35 | void add_child(Node* child); 36 | void remove_child(Node* child); 37 | Node* get_last_child(); 38 | 39 | private: 40 | void set_parent(Node* parent); 41 | 42 | private: 43 | typedef std::vector Children; 44 | 45 | Children children_; 46 | Node* parent_; 47 | 48 | NodeData data_; 49 | }; 50 | 51 | } // DuiLib 52 | 53 | #endif // UILISTCOMMONDEFINE_HPP -------------------------------------------------------------------------------- /QQDemo/UIMicroBlog.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "UIMicroBlog.hpp" 3 | 4 | namespace DuiLib 5 | { 6 | 7 | CMicroBlogUI::CMicroBlogUI(CPaintManagerUI& paint_manager) 8 | : paint_manager_(paint_manager) 9 | {} 10 | 11 | CMicroBlogUI::~CMicroBlogUI() 12 | {} 13 | 14 | } // namespace DuiLib -------------------------------------------------------------------------------- /QQDemo/UIMicroBlog.hpp: -------------------------------------------------------------------------------- 1 | #ifndef UIMICROBLOG_HPP 2 | #define UIMICROBLOG_HPP 3 | 4 | namespace DuiLib 5 | { 6 | class CMicroBlogUI : public CListUI 7 | { 8 | public: 9 | CMicroBlogUI(CPaintManagerUI& paint_manager); 10 | ~CMicroBlogUI(); 11 | 12 | private: 13 | CPaintManagerUI& paint_manager_; 14 | }; 15 | 16 | } // DuiLib 17 | 18 | #endif // UIMICROBLOG_HPP -------------------------------------------------------------------------------- /QQDemo/chat_dialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/QQDemo/chat_dialog.cpp -------------------------------------------------------------------------------- /QQDemo/color_skin.hpp: -------------------------------------------------------------------------------- 1 | #ifndef COLORSKIN_HPP 2 | #define COLORSKIN_HPP 3 | 4 | class MainFrame; 5 | using namespace DuiLib; 6 | 7 | class ColorSkinWindow : public WindowImplBase 8 | { 9 | public: 10 | ColorSkinWindow(MainFrame* main_frame, RECT rcParentWindow); 11 | 12 | LPCTSTR GetWindowClassName() const; 13 | 14 | virtual void OnFinalMessage(HWND hWnd); 15 | 16 | void Notify(TNotifyUI& msg); 17 | 18 | virtual void InitWindow(); 19 | 20 | virtual CDuiString GetSkinFile(); 21 | 22 | virtual CDuiString GetSkinFolder(); 23 | 24 | virtual LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 25 | 26 | private: 27 | RECT parent_window_rect_; 28 | 29 | MainFrame* main_frame_; 30 | }; 31 | 32 | #endif // COLORSKIN_HPP -------------------------------------------------------------------------------- /QQDemo/main_frame.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/QQDemo/main_frame.cpp -------------------------------------------------------------------------------- /QQDemo/res/QQRes.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/QQDemo/res/QQRes.zip -------------------------------------------------------------------------------- /QQDemo/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by QQDemo.rc 4 | // 5 | #define IDR_ZIPRES 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /QQDemo/skin_change_event.hpp: -------------------------------------------------------------------------------- 1 | #ifndef SKIN_CHANGE_EVENT_HPP 2 | #define SKIN_CHANGE_EVENT_HPP 3 | 4 | #include "observer_impl_base.hpp" 5 | 6 | struct SkinChangedParam 7 | { 8 | DWORD bkcolor; 9 | CDuiString bgimage; 10 | }; 11 | 12 | typedef class ObserverImpl SkinChangedObserver; 13 | typedef class ReceiverImpl SkinChangedReceiver; 14 | 15 | 16 | #endif // SKIN_CHANGE_EVENT_HPP -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/README.md -------------------------------------------------------------------------------- /RichListDemo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #Cmake file for RichListDemo 2 | #Author: Qi Gao(monkgau@gmail.com) 3 | #Created: 2012/9/17 4 | 5 | aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC_LIST) 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 7 | 8 | 9 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 10 | 11 | add_executable(RichListDemo ${SRC_LIST} RichListDemo.rc) 12 | set_target_properties(RichListDemo PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS") 13 | target_link_libraries(RichListDemo duilib) 14 | 15 | add_custom_command(TARGET RichListDemo POST_BUILD 16 | COMMAND ${CMAKE_COMMAND} -E copy_if_different 17 | ${PROJECT_BINARY_DIR}/bin/RichListDemo.exe ${PROJECT_SOURCE_DIR}/bin/RichListDemo.exe) 18 | -------------------------------------------------------------------------------- /RichListDemo/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/Resource.h -------------------------------------------------------------------------------- /RichListDemo/RichListDemo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/RichListDemo.cpp -------------------------------------------------------------------------------- /RichListDemo/RichListDemo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /RichListDemo/RichListDemo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/RichListDemo.ico -------------------------------------------------------------------------------- /RichListDemo/RichListDemo.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/RichListDemo.rc -------------------------------------------------------------------------------- /RichListDemo/RichListDemo.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/RichListDemo.vcproj -------------------------------------------------------------------------------- /RichListDemo/RichListWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/RichListWnd.cpp -------------------------------------------------------------------------------- /RichListDemo/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/small.ico -------------------------------------------------------------------------------- /RichListDemo/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/stdafx.cpp -------------------------------------------------------------------------------- /RichListDemo/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/RichListDemo/stdafx.h -------------------------------------------------------------------------------- /TestApp1/App.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/TestApp1/App.cpp -------------------------------------------------------------------------------- /TestApp1/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // App.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | #if defined _M_IX86 8 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 9 | #elif defined _M_IA64 10 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 11 | #elif defined _M_X64 12 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 13 | #else 14 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 15 | #endif 16 | -------------------------------------------------------------------------------- /TestApp1/StdAfx.h: -------------------------------------------------------------------------------- 1 | 2 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 3 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ 4 | 5 | #pragma once 6 | 7 | #define WIN32_LEAN_AND_MEAN 8 | #define _CRT_SECURE_NO_DEPRECATE 9 | 10 | #include 11 | #include 12 | 13 | #include "..\DuiLib\UIlib.h" 14 | 15 | using namespace DuiLib; 16 | 17 | #ifdef _DEBUG 18 | # ifdef _UNICODE 19 | # pragma comment(lib, "..\\Lib\\DuiLib_ud.lib") 20 | # else 21 | # pragma comment(lib, "..\\Lib\\DuiLib_d.lib") 22 | # endif 23 | #else 24 | # ifdef _UNICODE 25 | # pragma comment(lib, "..\\Lib\\DuiLib_u.lib") 26 | # else 27 | # pragma comment(lib, "..\\Lib\\DuiLib.lib") 28 | # endif 29 | #endif 30 | 31 | 32 | //{{AFX_INSERT_LOCATION}} 33 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 34 | 35 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) 36 | -------------------------------------------------------------------------------- /XMP/DefineUnicode.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEFINE_UNICODE_H__ 2 | #define __DEFINE_UNICODE_H__ 3 | 4 | namespace duilib 5 | { 6 | #ifdef _UNICODE 7 | typedef wchar_t char_t; 8 | typedef std::wstring string_t; 9 | typedef std::wstringstream stringstream_t; 10 | typedef std::wifstream ifstream_t; 11 | typedef std::wofstream ofstream_t; 12 | typedef std::wfstream fstream_t; 13 | #else 14 | typedef char char_t; 15 | typedef std::string string_t; 16 | typedef std::stringstream stringstream_t; 17 | typedef std::ifstream_t ifstream_t; 18 | typedef std::ofstream_t ofstream_t; 19 | typedef std::fstream fstream_t; 20 | #endif 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /XMP/DuiFrameWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/DuiFrameWnd.cpp -------------------------------------------------------------------------------- /XMP/DuiFrameWnd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/DuiFrameWnd.h -------------------------------------------------------------------------------- /XMP/KDetectMemoryLeak.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #ifdef _DEBUG 5 | #define DEBUG_CLIENTBLOCK new( _CLIENT_BLOCK, __FILE__, __LINE__) 6 | #else 7 | #define DEBUG_CLIENTBLOCK 8 | #endif 9 | 10 | #define _CRTDBG_MAP_ALLOC 11 | 12 | #ifdef _DEBUG 13 | #define new DEBUG_CLIENTBLOCK 14 | #endif 15 | 16 | void CheckOnExit() 17 | { 18 | _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); 19 | assert( _CrtDumpMemoryLeaks() == 0); 20 | } 21 | -------------------------------------------------------------------------------- /XMP/MenuWnd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/MenuWnd.h -------------------------------------------------------------------------------- /XMP/PlayList.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/PlayList.cpp -------------------------------------------------------------------------------- /XMP/PlayList.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/PlayList.h -------------------------------------------------------------------------------- /XMP/XMP.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/XMP.rc -------------------------------------------------------------------------------- /XMP/XMP.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/XMP.vcproj -------------------------------------------------------------------------------- /XMP/duilib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/duilib.h -------------------------------------------------------------------------------- /XMP/logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/logo.ico -------------------------------------------------------------------------------- /XMP/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/XMP/main.cpp -------------------------------------------------------------------------------- /XMP/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by XMP.rc 4 | // 5 | #define IDI_ICON1 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /bin/DuiDesigner.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/DuiDesigner.exe -------------------------------------------------------------------------------- /bin/DuiLib_u.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/DuiLib_u.dll -------------------------------------------------------------------------------- /bin/skin/360SafeRes.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/skin/360SafeRes.zip -------------------------------------------------------------------------------- /bin/skin/FlashRes/frame_btn_close_disable.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/skin/FlashRes/frame_btn_close_disable.bmp -------------------------------------------------------------------------------- /bin/skin/FlashRes/frame_btn_close_down.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/skin/FlashRes/frame_btn_close_down.bmp -------------------------------------------------------------------------------- /bin/skin/FlashRes/frame_btn_close_hot.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/skin/FlashRes/frame_btn_close_hot.bmp -------------------------------------------------------------------------------- /bin/skin/FlashRes/frame_btn_close_normal.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/skin/FlashRes/frame_btn_close_normal.bmp -------------------------------------------------------------------------------- /bin/skin/FlashRes/test.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonstar/duilibgoogle/da4441822e0511d11056ef79915a9235fa9a907e/bin/skin/FlashRes/test.swf -------------------------------------------------------------------------------- /bin/skin/FlashRes/ui.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |