void CApplicationMessenger::SendGUIMessage(const CGUIMessage &message, int windowID, bool waitResult) { ThreadMessage tMsg(TMSG_GUI_MESSAGE); tMsg.param1 = windowID == WINDOW_INVALID ? 0 : windowID; tMsg.lpVoid = new CGUIMessage(message); SendMsg(std::move(tMsg), waitResult); }
void cUISelectButton::Select() { bool wasSelected = Selected(); SetSkinState( cUISkinState::StateSelected ); mControlFlags |= UI_CTRL_FLAG_SELECTED; if ( !wasSelected ) { cUIMessage tMsg( this, cUIMessage::MsgSelected, 0 ); MessagePost( &tMsg ); } }
void cUIManager::SendMsg( cUIControl * Ctrl, const Uint32& Msg, const Uint32& Flags ) { cUIMessage tMsg( Ctrl, Msg, Flags ); Ctrl->MessagePost( &tMsg ); }