CGUIMessage is a class in the C++ programming language that is used to create GUI-based applications. The GetParam1 is a member function of the CGUIMessage class object that is used to retrieve the first parameter passed to the message. This function is commonly used in GUI event handlers to retrieve the specific information passed in the message that triggered the event handler.
Here are some code examples using CGUIMessage GetParam1:
Example 1: Retrieving the index of a selected item in a listbox
CGUIMessage msg; int index = msg.GetParam1(); // index now holds the index of the selected item in the listbox.
In this example, we have a message object called 'msg' that was passed to the event handler for a listbox control. We use GetParam1 to retrieve the index of the selected item in the listbox, which we then store in the 'index' variable.
Package library: CGUI
Example 2: Retrieving the ID of a button that was clicked
CGUIMessage msg; int buttonID = msg.GetParam1(); // buttonID now holds the ID of the button that was clicked.
In this example, we have a message object called 'msg' that was passed to the event handler for a button control. We use GetParam1 to retrieve the ID of the button that was clicked, which we then store in the 'buttonID' variable.
Package library: CGUI
Overall, the CGUIMessage GetParam1 function is a useful tool for retrieving specific information passed in a message. It can be used in various GUI event handlers and is part of the CGUI package library in C++.
C++ (Cpp) CGUIMessage::GetParam1 - 30 examples found. These are the top rated real world C++ (Cpp) examples of CGUIMessage::GetParam1 extracted from open source projects. You can rate examples to help us improve the quality of examples.