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?