SendMessage

Mikecrosoft
01-30-2004, 09:34 AM
Hi all,


I'm having trouble trying to give Size ability to my Irreglular form window, Im using messages to attempt this, so I need to send the WM_SIZING message to the window, but I have a doubt, the SendMessage uses wParam and lParam, in the wParam I send WMSZ_RIGHT, but in the lParam I need to send the Pointer to a REctangle.

How I can send a pointer ?

Thanks :D

In vb6 I only sent the Rect object in the lparam (... lParam As Any) ), but I don't think about this in .NET because the any type is not supported anymore.

Mike

Csharp
01-30-2004, 09:38 AM
replace the Any with RECT...

Structure RECT
Private Left As Int32
Private Top As Int32
Private Right As Int32
Private Bottom As Int32
End Structure

Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As RECT) As Integer

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum