Esempio n. 1
0
 public QMenuItem(string title, QTTabBarLib.MenuItemArguments mia)
     : base(title) {
     if(mia != null) {
         this.path = mia.Path;
         this.mia = mia;
         this.menuTarget = mia.Target;
         this.menuGenre = mia.Genre;
     }
 }
Esempio n. 2
0
 public static extern int DrawThemeTextEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string text, int iCharCount, TextFormatFlags dwFlags, ref QTTabBarLib.Interop.RECT pRect, ref DTTOPTS pOptions);
Esempio n. 3
0
 public static extern int DrawTextExW(IntPtr hdc, IntPtr lpchText, int cchText, ref QTTabBarLib.Interop.RECT lprc, int dwDTFormat, IntPtr lpDTParams);
Esempio n. 4
0
 public static extern IntPtr CreateIconIndirect(ref QTTabBarLib.Interop.ICONINFO piconinfo);
Esempio n. 5
0
 public static extern IntPtr CreateFontIndirect(ref QTTabBarLib.Interop.LOGFONT lplf);
Esempio n. 6
0
 public static extern IntPtr CreateDIBSection(IntPtr hDC, ref QTTabBarLib.Interop.BITMAPINFO pbmi, uint iUsage, out IntPtr ppvBits, IntPtr hSection, uint dwOffset);
Esempio n. 7
0
 public static extern bool TrackMouseEvent(ref QTTabBarLib.Interop.TRACKMOUSEEVENT lpEventTrack);
Esempio n. 8
0
 public Plugin(IPluginClient pluginClient, QTTabBarLib.PluginInformation pluginInfo) {
     this.pluginClient = pluginClient;
     this.pluginInfo = pluginInfo;
     this.fBackgroundButtonIsSupported = ((pluginInfo.PluginType == PluginType.Background) && ((pluginClient is IBarButton) || (pluginClient is IBarCustomItem))) || ((pluginInfo.PluginType == PluginType.BackgroundMultiple) && (pluginClient is IBarMultipleCustomItems));
 }
Esempio n. 9
0
 public static extern IntPtr SetWindowsHookEx(int idHook, QTTabBarLib.Interop.HookProc lpfn, IntPtr hInstance, int dwThreadId);
Esempio n. 10
0
 public static extern bool PtInRect(ref QTTabBarLib.Interop.RECT lprc, BandObjectLib.POINT pt);
Esempio n. 11
0
 public static extern int MapWindowPoints(IntPtr hWndFrom, IntPtr hWndTo, ref QTTabBarLib.Interop.RECT lpPoints, int cPoints);
Esempio n. 12
0
 public static extern bool GetWindowRect(IntPtr hWnd, out QTTabBarLib.Interop.RECT pRect);
Esempio n. 13
0
 public static extern int GetObject(IntPtr hgdiobj, int cbBuffer, out QTTabBarLib.Interop.LOGFONT lpvObject);
Esempio n. 14
0
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref QTTabBarLib.Interop.MARGINS pMarInset);
Esempio n. 15
0
 public static extern int SHCreateShellItem(IntPtr pidlParent, IShellFolder psfParent, IntPtr pidl, out QTTabBarLib.Interop.IShellItem ppsi);
Esempio n. 16
0
 private static bool CheckDisplayName(QTTabBarLib.Interop.IShellFolder shellFolder, IntPtr pIDLLast, Regex re) {
     if(pIDLLast != IntPtr.Zero) {
         QTTabBarLib.Interop.STRRET strret;
         uint uFlags = 0;
         StringBuilder pszBuf = new StringBuilder(260);
         if(shellFolder.GetDisplayNameOf(pIDLLast, uFlags, out strret) == 0) {
             QTTabBarLib.Interop.PInvoke.StrRetToBuf(ref strret, pIDLLast, pszBuf, pszBuf.Capacity);
         }
         if(pszBuf.Length > 0) {
             return re.IsMatch(pszBuf.ToString());
         }
     }
     return false;
 }
 public PluginOptionEventArgs(QTTabBarLib.PluginViewItem pvi) {
     this.pvi = pvi;
 }