开发者

I Don't get the WM_GETMINMAXINFO message from other applications

开发者 https://www.devze.com 2022-12-09 20:23 出处:网络
In my C-Dll there is a Windows hook: hook = SetWindowsHookEx(WH_CALLWNDPROC, CallWndProc, hinstance, 0);

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

精彩评论

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