hi all
Using an ApiSpy, i am able to get the handle to a ListView control whose class name is SysListView32...now i want to get its width (the no of rows), i tried the following but it alwasy returns 0:
- Code: Select all
[DllImport("user32.dll", EntryPoint = "SendMessage")]
public static extern int SendMessageLong(IntPtr hWnd, uint Msg,
int wParam, StringBuilder lParam);
const int LVM_GETCOLUMNWIDTH = 0xF126;
int count = SendMessageLong(hListView, LVM_GETCOLUMNWIDTH, 0, null);//returns 0
i am not sure if LVM_GETCOLUMNWIDTH is declared correctly.
any tips plz?
nanomachine dude are u there!
nooob




