Example #1
0
 public GHItemIcon(GHItemIcon icon) : base(icon)
 {
     rect_text = icon.rect_text;
     rect_icon = icon.rect_icon;
     item_name = new StringBuilder(64);
     item_name.Append(icon.item_name);
 }
Example #2
0
        public MysetItem(string path)
        {
            ExePath = new StringBuilder(path);

            if (GHProcess.GetPathIcon(ref ExePath, out Icon ic))
            {
                icon = new GHItemIcon(ref ic, FormType.ItemList);
            }
Example #3
0
        /// <summary>
        /// グループアイテムのコンストラクタ
        /// </summary>
        /// <param name="hwnd">アイテムのウィンドウハンドル</param>
        public GroupItem(ref long hwnd)
        {
            this.hwnd = hwnd;

            if (GHProcess.GetProcessIcon(ref this.hwnd, out Icon ic))
            {
                icon = new GHItemIcon(ref ic, FormType.ItemList);
            }
Example #4
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="item">登録するアイテム</param>
        public MysetItem(GroupItem item)
        {
            icon    = item.icon.Clone(FormType.MysetList);
            ExePath = new StringBuilder(255);
            long hwnd = item.Handle;

            GHProcess.GetProcessPath(ref hwnd, out ExePath);

            icon.item_name.Clear();
            icon.item_name = new StringBuilder(System.IO.Path.GetFileNameWithoutExtension(ExePath.ToString()));

            icon.control.MouseClick += new MouseEventHandler(Item_Control_Click);
        }
Example #5
0
        public new GHItemIcon Clone(FormType windowType)
        {
            GHItemIcon iconEx = new GHItemIcon(image, windowType);

            return(iconEx);
        }