myrabit... I appreciate you taking the time to respond to my request, but your response does not help in solving this problem.
Sam... I have tried your suggestion, but when I copy the data back into the memory location pointed to by lParam, I receive an Exception Unhandled Error (glorified GPF).
Here is the code I am using:
Any suggestions?Code:'...snip... Dim tMinMaxInfo As MINMAXINFO '...snip... Case WM_GETMINMAXINFO Call CopyMemory(tMinMaxInfo, ByVal lParam, LenB(tMinMaxInfo)) ' Verify that the form is not being resized ' smaller than allowed If ((tMinMaxInfo.ptMinTrackSize.x * Screen.TwipsPerPixelX) < frm.MinWindowWidth) Then tMinMaxInfo.ptMinTrackSize.x = frm.MinWindowWidth End If If ((tMinMaxInfo.ptMinTrackSize.y * Screen.TwipsPerPixelY) < frm.MinWindowHeight) Then tMinMaxInfo.ptMinTrackSize.y = frm.MinWindowHeight End If Call CopyMemory(lParam, tMinMaxInfo, LenB(tMinMaxInfo)) ' Call default message handler WndProc = CallWindowProc(frm.OldProc, hwnd, wMsg, wParam, lParam) '...snip...
[Edited by MGervais77 on 06-07-2000 at 09:55 AM]




Reply With Quote