I am trying to modify the size of the non-client area of a window (actually to make line numbers in an edit control).
I found examples showing this in C taking use of the fact that the lParamcontains the adress of a structure with the client rectangle:
"If wParam is TRUE, lParam points to an NCCALCSIZE_PARAMS structure that contains information an application can use to calculate the new size and position of the client rectangle. If wParam is FALSE, lParam points to a RECT structure. On entry, the structure contains the proposed window rectangle for the window. On exit, the structure should contain the screen coordinates of the corresponding window client area."
The way I have seen this done is (in c++):
prect = (RECT *)lParam;
// modify prect...
I think this solution is very elegant and straight forward. But is there an equivalent way of doing this in fortran? Can I somehow make a pointer of type T_RECT point toward the adress as specified by lParam (lParam is an integer)?