erictankok
asked on
Window event callback if I have a window's m_hwnd ...
Hi,
In my own application, how do I recieve a minimisation event (WM_MINIMIZE) from a window (eg. Command Prompt) when it minimises and unminimises?
Thanks
In my own application, how do I recieve a minimisation event (WM_MINIMIZE) from a window (eg. Command Prompt) when it minimises and unminimises?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
With the callback for a global hook in an external dll, the callback code will still be in RAM for the OS to call even if your code exits without releasing the hook. The OS thus need not check for the presence of the callback before each call to it.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oh well. I can't have a separate DLL due to certain project requirements. So I guess I will have to use a timer to poll for window minimisation.
Thanks everyone for your help.
Thanks everyone for your help.
ASKER
is there a way to use SetWindowsHookEx() without having to put the CallWndProc() in another DLL? This is because my application is just a EXE file.
For example,
SetWindowsHookEx(WH_CALLWN
Can the above work with my CallWndProc located in my main program?