duilib自学教程
| 类型定义 | 枚举 | 函数 | 变量
DuiLib 命名空间参考

class  CActiveXCtrl
 
class  CActiveXEnum
 
class  CActiveXFrameWnd
 
class  CActiveXUI
 
class  CActiveXWnd
 
class  CButtonUI
 
class  CCheckBoxUI
 
class  CChildLayoutUI
 
class  CComboBodyUI
 
class  CComboUI
 
class  CComboWnd
 
class  CContainerUI
 
class  CControlUI
 
class  CDateTimeUI
 时间选择控件 更多...
 
class  CDateTimeWnd
 
class  CDelegate
 
class  CDelegateBase
 
class  CDelegateStatic
 
class  CDialogBuilder
 
class  CDuiPoint
 
class  CDuiPtrArray
 
class  CDuiRect
 
class  CDuiSize
 
class  CDuiString
 
class  CDuiStringPtrMap
 
class  CDuiValArray
 
class  CEditUI
 
class  CEditWnd
 
class  CEventSource
 
class  CFlashEventHandler
 
class  CFlashUI
 
class  CGifAnimUI
 
class  CHorizontalLayoutUI
 
class  CLabelUI
 
class  CListBodyUI
 
class  CListContainerElementUI
 
class  CListElementUI
 
class  CListHBoxElementUI
 
class  CListHeaderItemUI
 
class  CListHeaderUI
 
class  CListLabelElementUI
 
class  CListTextElementUI
 
class  CListUI
 
class  CMarkup
 
class  CMarkupNode
 
class  CNotifyPump
 
class  COptionUI
 
class  CPaintManagerUI
 窗口消息及图形绘制管理器类 更多...
 
class  CProgressUI
 
class  CRenderClip
 
class  CRenderEngine
 
class  CRichEditUI
 
class  CSafeRelease
 
class  CScrollBarUI
 
class  CSliderUI
 
class  CTabLayoutUI
 
class  CTextUI
 
class  CTileLayoutUI
 
class  CTreeNodeUI
 
class  CTreeViewUI
 
class  CTxtWinHost
 
class  CVariant
 
class  CVerticalLayoutUI
 
class  CWaitCursor
 
class  CWebBrowserEventHandler
 
class  CWebBrowserUI
 
class  CWindowWnd
 窗口基类 更多...
 
struct  DUI_MSGMAP
 
struct  DUI_MSGMAP_ENTRY
 存放消息信息的结构体 更多...
 
union  DuiMessageMapFunctions
 
class  IContainerUI
 
class  IDialogBuilderCallback
 
class  IListCallbackUI
 
class  IListItemUI
 
class  IListOwnerUI
 
class  IListUI
 
class  IMessageFilterUI
 消息过滤器接口 更多...
 
class  INotifyUI
 监听接口 更多...
 
class  ITranslateAccelerator
 
class  STRINGorID
 
struct  tagFINDSHORTCUT
 
struct  tagFINDTABINFO
 
struct  tagTDrawInfo
 
struct  tagTEventUI
 
struct  tagTFontInfo
 
struct  tagTImageInfo
 
struct  tagTIMERINFO
 
struct  tagTListInfoUI
 
struct  tagTNotifyUI
 
struct  tagTPercentInfo
 
struct  tagTResInfo
 
struct  TITEM
 
class  WindowImplBase
 基础窗口类 更多...
 

类型定义

typedef HRESULT(__stdcall * DllGetClassObjectFunc) (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
typedef int(CALLBACK * PULVCompareFunc) (UINT_PTR, UINT_PTR, UINT_PTR)
 
typedef struct DuiLib::tagTListInfoUI TListInfoUI
 
typedef CControlUI *(CALLBACK * FINDCONTROLPROC) (CControlUI *, LPVOID)
 
typedef struct DuiLib::tagTNotifyUI TNotifyUI
 和外部通信的通知结构体
 
typedef void(CNotifyPump::* DUI_PMSG) (TNotifyUI &msg)
 
typedef struct DuiLib::tagFINDTABINFO FINDTABINFO
 
typedef struct DuiLib::tagFINDSHORTCUT FINDSHORTCUT
 
typedef struct DuiLib::tagTIMERINFO TIMERINFO
 
typedef BOOL(__stdcall * PFUNCUPDATELAYEREDWINDOW) (HWND, HDC, POINT *, SIZE *, HDC, POINT *, COLORREF, BLENDFUNCTION *, DWORD)
 
typedef struct DUILIB_API DuiLib::tagTFontInfo TFontInfo
 
typedef struct DUILIB_API DuiLib::tagTImageInfo TImageInfo
 
typedef struct DUILIB_API DuiLib::tagTDrawInfo TDrawInfo
 
typedef struct DUILIB_API DuiLib::tagTPercentInfo TPercentInfo
 
typedef struct DUILIB_API DuiLib::tagTResInfo TResInfo
 
typedef struct DUILIB_API DuiLib::tagTEventUI TEventUI
 
typedef CControlUI *(* LPCREATECONTROL) (LPCTSTR pstrType)
 

枚举

enum  DuiSig { DuiSig_end = 0, DuiSig_lwl, DuiSig_vn }
 
enum  EVENTTYPE_UI {
  UIEVENT__FIRST = 1, UIEVENT__KEYBEGIN, UIEVENT_KEYDOWN, UIEVENT_KEYUP,
  UIEVENT_CHAR, UIEVENT_SYSKEY, UIEVENT__KEYEND, UIEVENT__MOUSEBEGIN,
  UIEVENT_MOUSEMOVE, UIEVENT_MOUSELEAVE, UIEVENT_MOUSEENTER, UIEVENT_MOUSEHOVER,
  UIEVENT_BUTTONDOWN, UIEVENT_BUTTONUP, UIEVENT_RBUTTONDOWN, UIEVENT_DBLCLICK,
  UIEVENT_CONTEXTMENU, UIEVENT_SCROLLWHEEL, UIEVENT__MOUSEEND, UIEVENT_KILLFOCUS,
  UIEVENT_SETFOCUS, UIEVENT_WINDOWSIZE, UIEVENT_SETCURSOR, UIEVENT_TIMER,
  UIEVENT_NOTIFY, UIEVENT_COMMAND, UIEVENT__LAST
}
 
enum  { XMLFILE_ENCODING_UTF8 = 0, XMLFILE_ENCODING_UNICODE = 1, XMLFILE_ENCODING_ASNI = 2 }
 
enum  UILIB_RESOURCETYPE { UILIB_FILE =1, UILIB_ZIP, UILIB_RESOURCE, UILIB_ZIPRESOURCE }
 资源文件类型 更多...
 

函数

 STDMETHODIMP_ (ULONG) CActiveXCtrl
 
Color ARGB2Color (DWORD dwColor)
 
LONG DXtoHimetricX (LONG dx, LONG xPerInch)
 
LONG DYtoHimetricY (LONG dy, LONG yPerInch)
 
HRESULT InitDefaultCharFormat (CRichEditUI *re, CHARFORMAT2W *pcf, HFONT hfont)
 
HRESULT InitDefaultParaFormat (CRichEditUI *re, PARAFORMAT2 *ppf)
 
HRESULT CreateHost (CRichEditUI *re, const CREATESTRUCT *pcs, CTxtWinHost **pptec)
 
void DUILIB_API DUI__Trace (LPCTSTR pstrFormat,...)
 
LPCTSTR DUI__TraceMsg (UINT uMsg)
 
template<class O , class T >
CDelegate< O, T > MakeDelegate (O *pObject, bool(T::*pFn)(void *))
 
CDelegateStatic MakeDelegate (bool(*pFn)(void *))
 

变量

const LONG cInitTextMax = (32 * 1024) - 1
 
EXTERN_C const IID IID_ITextServices
 
EXTERN_C const IID IID_ITextHost
 
PFUNCUPDATELAYEREDWINDOW g_fUpdateLayeredWindow = NULL
 
HPEN m_hUpdateRectPen = NULL
 

详细描述

BEGIN消息映射宏定义////////////////////////////////////////////////////

枚举类型说明

◆ UILIB_RESOURCETYPE

资源文件类型

枚举值
UILIB_FILE 

来自磁盘文件

UILIB_ZIP 

来自磁盘zip压缩包

UILIB_RESOURCE 

来自资源

UILIB_ZIPRESOURCE 

来自资源的zip压缩包

变量说明

◆ IID_ITextHost

EXTERN_C const IID DuiLib::IID_ITextHost
初始值:
= {
0xc5bdd8d0,
0xd26e,
0x11ce,
{0xa8, 0x9e, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5}
}

◆ IID_ITextServices

EXTERN_C const IID DuiLib::IID_ITextServices
初始值:
= {
0x8d33f740,
0xcf58,
0x11ce,
{0xa8, 0x9d, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5}
}