In my C# library I have many SendMessages like the following:
[DllImport("user32.dll", EntryPoint="SendMessage",CharSet=CharSet.Auto )]
public static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, ref
PARAFORMAT2 pf2);
I use this one like this:
Dim lSelectedParagraph As PARAFORMAT2
Rtf.SendMessage(gctlText.TxtHandle, Rtf.EM_GETPARAFORMAT, 0,
lSelectedParagraph)
So that I do not need to define a SendMesage for each usage, I think I could
define:
[DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)]public
static extern int SendMessage(
IntPtr hWnd, [MarshalAs(UnmanagedType.U4)] int Msg,IntPtr wParam, IntPtr
lParam);
Could someone show me how to write the VB SendMessage call that will use
this SendMessage??
I think if I have one example I can figure out how to do the others,
Thanks in advance
Thanks