【oncmdmsg mouse】2023/8/19 9:50:14 am

2023/8/19 9:50:14 am

oncmdmsg mouse

2023/8/19 9:50:22 am

Sorry, what are "oncmdmsg" and "mouse" you mentioned? Please provide more context and I'll try to help you.

2023/8/19 9:51:43 am

OnCmdMsg

2023/8/19 9:52:21 am

"OnCmdMsg" is a common function in the MFC (Microsoft Foundation Classes) framework. It is a member function used to process window messages and is used to respond to the processing of specific command messages. When the user operates controls on the interface (such as buttons or menu items), these controls will send command messages to the window. In the window's message map, you can use the OnCmdMsg function to capture and process these command messages.

Specifically, the OnCmdMsg function is a member function of the CWnd class and is commonly used in window classes (such as dialog boxes or main windows). It receives two parameters: a pointer to the CCmdTarget object containing the command message and an identifier to identify the command. The OnCmdMsg function is called when a command message is received and can perform corresponding operations based on the command identifier.

Please note that the information I provide is based on typical usage. If you have a more specific question or need a more detailed explanation, please provide more context.

2023/8/19 9:52:34 am

OnCmdMsg button mouse

2023/8/19 9:53:12 am

The "OnCmdMsg" function is not directly related to buttons, but is a function used to handle window messages. If you want to handle mouse messages for a button, you need to use the button-related message handling function.

In MFC, button controls typically use message map macros to handle user actions. Here is an example of handling button mouse messages:

Add an entry in your window class's message map:
cpp

<

おすすめ

転載: blog.csdn.net/vv1025/article/details/133563756