views:

90

answers:

1

Hello!

In my C-Dll there is a Windows hook:

hook = SetWindowsHookEx(WH_CALLWNDPROC, CallWndProc, hinstance, 0);

With this Callback method:

LRESULT CALLBACK CallWndProc(int nCode, WPARAM wParam, LPARAM lParam)
{

...
CWPSTRUCT* cw = reinterpret_cast<CWPSTRUCT*>(lParam);
myfile << "CallWndProc allg. " << cw->message << "\n";

if (cw->message == WM_GETMINMAXINFO)
{
    // I don't get the message here
}
}

I get all Windows messages except the WM_GETMINMAXINFO message. I want to modify the maximum size of a window. How can I resolve this problem?

Thank you very much!
Andy

A: 

Have you confirmed that the WM_GETMINMAXINFO message is actually being sent via Spy++ or similar program?

Also note that this message is not sent when MoveWindow is called.

Aaron Klotz