![]() |
|
|
|
#1
|
|||
|
|||
|
Quote:
Quote:
Regards, bilbo |
|
#2
|
|||
|
|||
|
You probably didn't get many hits because it's BM_CLICK not WM_CLICK
See Satyric0n's post above.
|
|
#3
|
|||
|
|||
|
He would have found only 281 hits for "BM_CLICK."
This one might be of interest: http://www.minigui.com/api_ref/group__ctrl__button__msgs.html and the part where it states: Define Documentation #define BM_CLICK 0xF0F5 Simulates the user clicking a button. An application sends a BM_CLICK message to simulate the user clicking a button. BM_CLICK wParam = 0; lParam = 0; Definition at line 822 of file control.h. That seems to make the "definition" of BM_CLICK and WM_CLICK seem somewhat similar. At least in this case. Regards,
__________________
JMI |
|
#4
|
|||
|
|||
|
Thanks, Jackal / JMI,
that was another gross failure of my memory! I would have known that, since a CLICK is a message specific to Buttons, it must not be searched under WM_xxx (generic Windows messages), but under BM_xxx (Button messages). And that is in fact the place where it is documented by M$, in their SDK, along with other: Button Control Messages (BCM_GETIDEALSIZE, BCM_GETIMAGELIST, BCM_GETTEXTMARGIN,BCM_SETIMAGELIST, BCM_SETTEXTMARGIN) Button Control Notifications (BCN_HOTITEMCHANGE) Button Messages (BM_CLICK, BM_GETCHECK, BM_GETIMAGE, BM_GETSTATE,BM_SETCHECK, BM_SETIMAGE,BM_SETSTATE, BM_SETSTYLE) Button Notifications (BN_CLICKED,BN_DBLCLK, BN_DOUBLECLICKED, BN_KILLFOCUS,BN_SETFOCUS, BN_DISABLE, BN_HILITE, BN_PAINT,BN_PUSHED,BN_UNHILITE,BN_UNPUSHED) BM_CLICK is defined in winuser.h (for MSVC) as Code:
#define BM_CLICK 0x00F5 Code:
BM_CLICK equ 0F5h By the way, the site you dug out is very interesting, JMI! They (our chinese colleagues) are offering a full GUI (with some sources) multi-platform and not depending on GDI32/WIN32K... [EDIT JMI: Master bilbo: Slightly adjusted your post so that it didn't run outside the normal window view and all shows without the scroll sideways.] [EDIT bilbo: Thanks, JMI, I do not how could it happen!] Last edited by bilbo; 02-17-2005 at 16:21. |
|
#5
|
|||
|
|||
|
Ok this really isn't helping much because I get how you simulate it, yet I don't get how I can insert and run that C code when Typer Shark starts.
Maybe someone can download it and help me a bit (www.popcap.com) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where is the answered button? | Dreamer | General Discussion | 0 | 05-07-2015 18:22 |
| Does simulating click affect GetMessagePos()? | BlackWhite | General Discussion | 10 | 02-14-2015 02:54 |