Hi,
Is there a specific reason why unprocessed messages in IsDialogMessage don't get dispatched? Experiments in Windows 2000 show this is not (always) correct. It seems all messages passed on to IsDialogMessage are dispatched and it always returns 1.
IsDialogMessage doesn't call DispatchMessage, but the function called internally by DispatchMessage.
Changing the behaviour to match Windows 2000 fixes at least one problem I noticed in an MFC application (button getting stuck when using the spacebar).
There's not much information in MSDN about this function, so I can't say if IsDialogMessage always behaves like this.
Sander
On Mon, Jul 01, 2002 at 01:30:46PM +0200, Sander van Leeuwen wrote:
Hi,
Is there a specific reason why unprocessed messages in IsDialogMessage don't get dispatched? Experiments in Windows 2000 show this is not (always) correct. It seems all messages passed on to IsDialogMessage are dispatched and it always returns 1.
Hmm, IsDialogMessage seems to be a bit of a mystery. I had a look at it several times already, and I could never quite find out how it is supposed to handle stuff from the docu available in various places...
We actually might want to write our very own manual page for this function; given the current documentation status of this function, it definitely deserves it (as opposed to some other much better described functions !).
Andreas Mohr wrote:
On Mon, Jul 01, 2002 at 01:30:46PM +0200, Sander van Leeuwen wrote:
Hi,
Is there a specific reason why unprocessed messages in IsDialogMessage don't get dispatched? Experiments in Windows 2000 show this is not (always) correct. It seems all messages passed on to IsDialogMessage are dispatched and it always returns 1.
Hmm, IsDialogMessage seems to be a bit of a mystery. I had a look at it several times already, and I could never quite find out how it is supposed to handle stuff from the docu available in various places...
We actually might want to write our very own manual page for this function; given the current documentation status of this function, it definitely deserves it (as opposed to some other much better described functions !).
This is a good idea but who can do it and where will we put it?
Tony Lambregts