Groups | Blog | Home
all groups > vb.net upgrade > october 2004 >

vb.net upgrade : Move subclassing code to vb.net


eastforkfarms NO[at]SPAM yahoo.com
10/14/2004 1:46:58 PM
I have a listview in VB6 that utilizes subclassing to hide/lock
columns.

I want to move this to VB.NET,via the upgrade wizard, but I cannot
find a replacement for:

Public Declare Sub MoveMemory Lib _
"kernel32" Alias "RtlMoveMemory" _
(pDest As Any, pSource As Any, _
ByVal dwLength As Long)

....which is used later:

Call MoveMemory(nmh, ByVal lParam, Len(nmh))

Any ideas?

Thanks,

Herfried K. Wagner [MVP]
10/14/2004 10:58:00 PM
"Stephen Robertson" <eastforkfarms@yahoo.com> schrieb:
[quoted text, click to view]

Inside your 'WndProc', you can use 'm.GetLParam' to dereference the pointer
given in 'lParam'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
AddThis Social Bookmark Button