|
-
July 19th, 2010, 08:51 AM
#1
What is actually LPARAM, WPARAM & LRESULT in detail?
typedef UINT_PTR WPARAM;
typedef LONG_PTR LPARAM;
typedef LONG_PTR LRESULT;
What actually there are?
LPARAM & LRESULT. Can i cast of point them to a class object?
For example,
in a WndProc, and inside a switch case (maybe WM_CREATE), can I cast LRESULT to point to a RECT myrect and use it as return tp the WndProc
LRESULT CALLBACK WndProc (...)
{
.....
swith(Msg){
case WM_CREATE:
.....
return lresult;
break;
....
}
return : efWindowProc(hwnd, iMsg, wParam, lParam);
}
then in somehere else WndProc (a child window), i can do this to retrieve the pointer to the myrect such as
Rect rect = SendMessage(hwndparent, WM_CREATE, null, null);
It is possible? How do i cast it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|