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; } }
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);
public static extern int DrawTextExW(IntPtr hdc, IntPtr lpchText, int cchText, ref QTTabBarLib.Interop.RECT lprc, int dwDTFormat, IntPtr lpDTParams);
public static extern IntPtr CreateIconIndirect(ref QTTabBarLib.Interop.ICONINFO piconinfo);
public static extern IntPtr CreateFontIndirect(ref QTTabBarLib.Interop.LOGFONT lplf);
public static extern IntPtr CreateDIBSection(IntPtr hDC, ref QTTabBarLib.Interop.BITMAPINFO pbmi, uint iUsage, out IntPtr ppvBits, IntPtr hSection, uint dwOffset);
public static extern bool TrackMouseEvent(ref QTTabBarLib.Interop.TRACKMOUSEEVENT lpEventTrack);
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)); }
public static extern IntPtr SetWindowsHookEx(int idHook, QTTabBarLib.Interop.HookProc lpfn, IntPtr hInstance, int dwThreadId);
public static extern bool PtInRect(ref QTTabBarLib.Interop.RECT lprc, BandObjectLib.POINT pt);
public static extern int MapWindowPoints(IntPtr hWndFrom, IntPtr hWndTo, ref QTTabBarLib.Interop.RECT lpPoints, int cPoints);
public static extern bool GetWindowRect(IntPtr hWnd, out QTTabBarLib.Interop.RECT pRect);
public static extern int GetObject(IntPtr hgdiobj, int cbBuffer, out QTTabBarLib.Interop.LOGFONT lpvObject);
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref QTTabBarLib.Interop.MARGINS pMarInset);
public static extern int SHCreateShellItem(IntPtr pidlParent, IShellFolder psfParent, IntPtr pidl, out QTTabBarLib.Interop.IShellItem ppsi);
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; }