473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How To Use Wm_command

1
How to use WM_COMMAND when press the push button through BS_PUSHBUTTON in WINDOWS XP Platform give me the example of it in the source code visual c++

Thank You
Mar 25 '07 #1
1 5325
Banfa
9,065 Expert Mod 8TB
Have you set up a dialog box or window handler function?

You would use WM_COMMAND in a test on the message type received in those functions. Once you know it's a command then you can use the other message parameters to determine what type of command produced by what control

See the WM_COMMAND documentation
Mar 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mark S Pryor | last post by:
dear c.l.p, I'm posting a Py script to change the wordfile from inside the UE editor. Define this into the adv. tool menu. I found 100 posts in groups.google discussing Python and UltraEdit....
2
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help...
2
by: Xzyx987X | last post by:
Sorry if this is off topic for this group, but I couln't find any place better for directing question on Windows API programming. Here's the problem, I am calling the SetDlgItemText() function to...
3
by: Søren Badstue | last post by:
Hey there, I have just learned C++ for Windows programming, and try to understand the PeekMessage and the WM_COMMAND. When I click on a Menu-Item, I can reseive a WM_COMMAND in one of my...
20
by: Blah | last post by:
In MSDN documentation it states.. Remarks The constant declaration can declare multiple constants, for example: public const double x = 1.0, y = 2.0, z = 3.0; The static modifier is not...
5
by: Dave | last post by:
How do I check in a Windows Forms app if any controls have changed? I have a form that collects data, and I want to prompt the user if they try to exit the app, or load a new file, without saving...
4
by: Just Me | last post by:
I've seen this in examples: Case User.WM_COMMAND Select Case (m.WParam.ToInt32 And &H7FFF0000) \ &H10000 My question is why is the most significant bit ignored?
2
by: Metalone | last post by:
I would like to call windll.user32.SendMessageA(hwnd, win32con.WM_COMMAND, wParam, lParam) where lParam represents a pointer to an object. And also convert this pointer back to an object...
12
by: Morten Snedker | last post by:
I open a file for input. Each line is handled individually. Every time a line has been handled I wish to wait for ½ second before reading the next. Am I doing it right or wrong ? (I think it's...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.