mov eax,wParam
.IF ax==blahblah
invoke Beep,NULL,NULL

I get no Beep with this code when i left clickin in the client area.

The Win32 api states the WM_LBUTTONDOWN message is sent in WM_COMMAND.

maybe i don't have something else set?
Any help appreciated.
Posted on 2001-09-08 12:08:27 by titan
You missreaded. Win help:


fwKeys = wParam; // key flags
xPos = LOWORD(lParam); // horizontal position of cursor
yPos = HIWORD(lParam); // vertical position of cursor

The WM_LBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.



Value of wParam. Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
.... BliBliBli.

It's in the Message. Betov.
Posted on 2001-09-08 13:09:41 by Betov
The value WM_LBUTTONDOWN appears as the uMsg parameter, not the wParam parameter. They are different values, so uMsg cannot be both WM_LBUTTONDOWN and WM_COMMAND at the same time. You get a WM_COMMAND when you click on a button control (icon).
Posted on 2001-09-10 17:02:19 by tank