Esempio n. 1
0
        private int ColumnAtIndex(int column)
        {
            HDITEM lParam = default(HDITEM);

            lParam.mask = 128;
            for (int i = 0; i < ColumnCount; i++)
            {
                if (Win32.SendMessage(HeaderWnd, 4611, column, ref lParam) != IntPtr.Zero)
                {
                    return(lParam.iOrder);
                }
            }
            return(0);
        }
Esempio n. 2
0
 public static extern IntPtr SendMessage(IntPtr hwnd, int msg, int wParam, ref HDITEM lParam);