BMessage message; bool myBool = true; message.AddBool("MyBool", myBool);
#includeIn this example, a new message is created with a type of "B_QUIT_REQUESTED". A Boolean value "true" is added to the message with the name "bool_value". The BMessage class is a part of the BeOS API library.... BMessage message(B_QUIT_REQUESTED); message.AddBool("bool_value", true);