Find out the caller of WM_SIZING

121 Views Asked by At

I have a really huge project with hundreds of thousands lines of code. My application has a complex graphical interface.

For some reason, sometimes my main form is resized, and I just don't see why / how this happens.

To track down the reason for the resizing, I installed a window subclass.

Private Sub iSubclass_WndProc(ByVal bBefore As Boolean, bHandled As Boolean, lReturn As Long, ByVal lng_hWnd As Long, ByVal uMsg As eMsg, ByVal wParam As Long, ByVal lParam As Long, lParamUser As Long)

These are the parameters of the window message for WM_SIZING when this undesired resize occurs:

wParam = 9
lParam = 1697980  
lParamUser = 0

The resizing only occurs only like once each 2 hours, so debugging is really difficult already.

How could I track any further who / which function is responsible for the resizing?

0

There are 0 best solutions below