Exemplo n.º 1
0
 public ExSkin(ExWindow pWindow, int dwStyleDUI, int hTheme = 0, ExWndProcDelegate pfnWndProc = null)
 {
     m_hExDUI = ExAPI.Ex_DUIBindWindowEx(pWindow.WindowHandle, (IntPtr)hTheme, dwStyleDUI, 0, pfnWndProc);
     if (m_hExDUI != IntPtr.Zero)
     {
     }
     else
     {
         throw new ExException(ExStatus.HANDLE_INVALID, "绑定皮肤失败");
     }
 }
Exemplo n.º 2
0
        public ExSkin(ExSkin pOwner, string sClassName, string sWindowName, int x, int y, int nWidth, int nHeight, int dwStyleDUI,
                      int dwStyle = 0, int dwStyleEx = 0, int hTheme = 0, ExWndProcDelegate pfnWndProc = null)
        {
            IntPtr hWndParent = pOwner == null ? IntPtr.Zero : pOwner.Handle;

            m_hWnd = ExWindow.Create(hWndParent, sClassName, sWindowName, x, y, nWidth, nHeight, dwStyle, dwStyleEx);
            if (m_hWnd != IntPtr.Zero)
            {
                m_hExDUI = ExAPI.Ex_DUIBindWindowEx(m_hWnd, (IntPtr)hTheme, dwStyleDUI, 0, pfnWndProc);
                if (m_hExDUI != IntPtr.Zero)
                {
                }
                else
                {
                    throw new ExException(ExStatus.HANDLE_INVALID, "绑定皮肤失败");
                }
            }
            else
            {
                throw new ExException(ExStatus.HANDLE_INVALID, "创建窗口失败");
            }
        }
Exemplo n.º 3
0
        public static int Show(IExBaseUIEle pOwner, string sText, string sCaption, int uType, string sCheckbox, ref bool pfChecked, int dwTimeout, int dwFlags, ExWndProcDelegate pfnWndProc = null)
        {
            IntPtr hOwner = pOwner == null ? IntPtr.Zero : pOwner.Handle;

            return(ExAPI.Ex_MessageBoxEx(hOwner, sText, sCaption, uType, sCheckbox, ref pfChecked, dwTimeout, dwFlags, pfnWndProc));
        }