http://bugs.winehq.org/show_bug.cgi?id=1513
------- Additional Comments From jr-winebugs@quo.to 2005-10-10 18:24 ------- Created an attachment (id=1148) --> (http://bugs.winehq.org/attachment.cgi?id=1148&action=view) Example code
Here's a simple example program that illustrates the difference between Windows and Wine.
Try running the code on Windows (95 or later). Press F1. The program displays: "Got 0x4d message. Pass it to DefWindowProc?" If you answer Yes, you'll get another message box: "Got WM_HELP message." If you answer No, Windows will not send a WM_HELP message.
On Wine, you just get the "Got WM_HELP message" box. A 0x4d message is never received by the application.
So, in summary, Wine's current behavior is as follows:
- F1 keystroke received - SendMessage(..., WM_HELP, ...)
The behavior should be:
- F1 keystroke received - PostMessage(..., 0x4d, 0, 0) - In DefWindowProc: case 0x4d: SendMessage(..., WM_HELP, ...)