Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: Best C# IRC Channel? Pin
Heath Stewart4-May-04 3:47
protectorHeath Stewart4-May-04 3:47 
GeneralRe: Best C# IRC Channel? Pin
Marlun4-May-04 6:27
Marlun4-May-04 6:27 
GeneralRe: Best C# IRC Channel? Pin
Heath Stewart4-May-04 8:02
protectorHeath Stewart4-May-04 8:02 
GeneralRe: Best C# IRC Channel? Pin
Marlun4-May-04 10:08
Marlun4-May-04 10:08 
GeneralRe: Best C# IRC Channel? Pin
eggie54-May-04 15:54
eggie54-May-04 15:54 
GeneralRe: Best C# IRC Channel? Pin
Marlun4-May-04 20:23
Marlun4-May-04 20:23 
GeneralRe: Best C# IRC Channel? Pin
eggie55-May-04 2:01
eggie55-May-04 2:01 
Generalusing API in C# Pin
nthevu3-May-04 20:18
professionalnthevu3-May-04 20:18 
Hi,
I'm have problem with api functions in C#.I want to call API function to retreive listview information such as itemtext, item position... I use function SendMessage to get it but it doesn't work.
//API function :
//#define TreeView_GetItem(hwnd, pitem) \
// (BOOL)SNDMSG((hwnd), TVM_GETITEM, 0, (LPARAM)(TV_ITEM *)(pitem))
and my code in C# is :

public const int LVM_GETITEM =(LVM_FIRST + 75);//unicode
[DllImport("user32", CharSet = CharSet.Auto)]
public extern static int SendMessage(
IntPtr hWnd,
int wMsg,
long wParam,
ref LVITEM lParam);
//with LVITEM is the struct of ITEM in ListView :
unsafe struct LVITEM
{
public uint mask;
public int iItem;
public int iSubItem;
public uint state;
public uint stateMask;
public string pszText;
public int cchTextMax;
public int iImage;
public long lParam;
//public int iIndent;
public int iGroupId;
public uint cColumns; // tile view columns
public uint* puColumns;
} ;

Please show me anything wrong in my struct LVITEM ???
Thank you.
NTHEVU
GeneralRe: using API in C# Pin
Heath Stewart4-May-04 3:46
protectorHeath Stewart4-May-04 3:46 
GeneralRe: using API in C# Pin
nthevu4-May-04 5:15
professionalnthevu4-May-04 5:15 
GeneralRe: using API in C# Pin
Heath Stewart4-May-04 8:00
protectorHeath Stewart4-May-04 8:00 
GeneralRe: using API in C# Pin
nthevu4-May-04 18:18
professionalnthevu4-May-04 18:18 
GeneralAbout WebServer Pin
Moon Boy3-May-04 13:24
Moon Boy3-May-04 13:24 
GeneralRe: About WebServer Pin
TigerNinja_3-May-04 17:39
TigerNinja_3-May-04 17:39 
GeneralRe: About WebServer Pin
Heath Stewart4-May-04 3:40
protectorHeath Stewart4-May-04 3:40 
GeneralHuge Inout problem Pin
yomna-eltawil3-May-04 13:28
yomna-eltawil3-May-04 13:28 
GeneralRe: Huge Inout problem Pin
Heath Stewart4-May-04 3:38
protectorHeath Stewart4-May-04 3:38 
GeneralRe: Huge Inout problem Pin
leppie4-May-04 6:59
leppie4-May-04 6:59 
GeneralStrong-Named Assemblies Pin
Anders Molin3-May-04 12:59
professionalAnders Molin3-May-04 12:59 
GeneralRe: Strong-Named Assemblies Pin
Anders Molin3-May-04 13:09
professionalAnders Molin3-May-04 13:09 
Generalusing signcode.exe Pin
Anders Molin3-May-04 13:14
professionalAnders Molin3-May-04 13:14 
GeneralRe: using signcode.exe Pin
Nick Parker3-May-04 17:25
protectorNick Parker3-May-04 17:25 
GeneralRe: using signcode.exe Pin
Heath Stewart4-May-04 3:19
protectorHeath Stewart4-May-04 3:19 
GeneralRe: using signcode.exe Pin
Anders Molin4-May-04 4:26
professionalAnders Molin4-May-04 4:26 
GeneralRe: using signcode.exe Pin
Heath Stewart4-May-04 4:39
protectorHeath Stewart4-May-04 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.