开发者

I Don't get the WM_GETMINMAXINFO message from other applications

In my C-Dll there is a Windows hook:

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

With this Callba开发者_如何学运维ck 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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜