Beispiel #1
0
 public HDITEM(HeaderItemMask mask = HeaderItemMask.HDI_ALL)
 {
     if (mask.IsFlagSet(HeaderItemMask.HDI_TEXT))
     {
         pszText = new StrPtrAuto(cchTextMax = 1024);
     }
 }
Beispiel #2
0
 public void Dispose()
 {
     InteropUtil.FreeString(ref pszText, ref cchTextMax);
     if (mask.IsFlagSet(HeaderItemMask.Filter) && (type == 0 || type == 2))
     {
         Marshal.FreeHGlobal(pvFilter);
     }
 }
Beispiel #3
0
 public HDITEM(HeaderItemMask mask = HeaderItemMask.All)
 {
     if (mask.IsFlagSet(HeaderItemMask.Text))
     {
         cchTextMax = 1024;
         InteropUtil.AllocString(ref pszText, ref cchTextMax);
     }
 }
Beispiel #4
0
 public void Dispose()
 {
     StringExtensions.FreeString(ref pszText, ref cchTextMax);
     if (mask.IsFlagSet(HeaderItemMask.HDI_FILTER) && (type == 0 || type == HeaderItemFilterType.HDFT_ISSTRING))
     {
         Marshal.FreeCoTaskMem(pvFilter);
     }
 }
Beispiel #5
0
 public HDITEM(HeaderItemMask mask = HeaderItemMask.HDI_ALL)
 {
     if (mask.IsFlagSet(HeaderItemMask.HDI_TEXT))
     {
         cchTextMax = 1024;
         StringExtensions.AllocString(ref pszText, ref cchTextMax);
     }
 }
 public HDITEM(HeaderItemMask mask = HeaderItemMask.All)
 {
     if (mask.IsFlagSet(HeaderItemMask.Text))
     {
         cchTextMax = 1024;
         InteropUtil.AllocString(ref pszText, ref cchTextMax);
     }
 }