Hi there,
I want to trap resizing of the Access application Window by using
subclassing. I tried it with changing code snippets I grabbed from the
Internet, but I cannot get it to work. Does anyone have any sample code
available?
Knowing that Microsoft uses "back door" (i.e. undocumented) APIs in
developing many of their applications, I would highly doubt that you
would ever get this to work properly. It's certainly not good
engineering practice, at any rate; might be fun, though, trying to
hack into it ...
I assume that you want to prevent the main window from resizing (or
are you doing something else in the resize event)? You can set the
window size programmatically by calling the Windows API functions
Get-/SetWindowPlacement() and then mask out the window style bits
(call GetWindowLong, mask out the appropriate bits, then call
SetWindowLong with the modified style DWORD) which control whether or
not the min/max/restore buttons are shown. No need to subclass
anything.