This documentation is archived and is not being maintained.

Message.GetLParam Method

Gets the LParam value, and converts the value to an object.

[Visual Basic]
Public Function GetLParam( _
   ByVal cls As Type _
) As Object
public object GetLParam(
 Type cls
public: Object* GetLParam(
 Type* cls
public function GetLParam(
   cls : Type
) : Object;


The type to use to create an instance. This type must be declared as a structure type.

Return Value

An Object that represents an instance of the class specified by the cls parameter, with the data from the LParam field of the message.


Use the GetLParam method to retrieve information from the LParam field of a message and convert it to an object. You can use this method to access objects passed in a message.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Message Structure | Message Members | System.Windows.Forms Namespace