/// Searches for all user functions for the given message, and runs all of
/// them, discarding the results.

Searches for all user functions for the given message, and runs all of
them, discarding the results.
Searches for all user functions for the given message and runs all of them discarding the results .
pub(in crate::gui) fn process_all_messages(&self,
		wm_any: WndMsg) -> ErrResult<()>
	{
		Ok(match wm_any.msg_id {
			co::WM::NOTIFY => {
				let wm_nfy = wm::Notify::from_generic_wm(wm_any);
				let key = (wm_nfy.nmhdr.idFrom(), wm_nfy.nmhdr.code);
				for func in self.nfys.find_all(key) {
					func(wm_nfy)?; // execute stored function
				}
			},
			co::WM::COMMAND => {
				let wm_cmd = wm::Command::from_generic_wm(wm_any);
				let key = wm_cmd.event.code_id();
				for func in self.cmds.find_all(key) {
					func()?; // execute stored function
				}
			},
			co::WM::TIMER => {
				let wm_tmr = wm::Timer::from_generic_wm(wm_any);
				for func in self.tmrs.find_all(wm_tmr.timer_id) {
					func()?; // execute stored function
				}
			},
			_ => self.window_events.process_all_messages(wm_any)?,
		})
	}
pub ( in crate :: gui ) fn process_all_messages ( & self , wm_any : WndMsg ) -> ErrResult < ( ) > { Ok ( match wm_any . msg_id { co :: WM :: NOTIFY => { let wm_nfy = wm :: Notify :: from_generic_wm ( wm_any ) ; let key = ( wm_nfy . nmhdr . idFrom ( ) , wm_nfy . nmhdr . code ) ; for func in self . nfys . find_all ( key ) { func ( wm_nfy ) ? ; // execute stored function
 } } , co :: WM :: COMMAND => { let wm_cmd = wm :: Command :: from_generic_wm ( wm_any ) ; let key = wm_cmd . event . code_id ( ) ; for func in self . cmds . find_all ( key ) { func ( ) ? ; // execute stored function
 } } , co :: WM :: TIMER => { let wm_tmr = wm :: Timer :: from_generic_wm ( wm_any ) ; for func in self . tmrs . find_all ( wm_tmr . timer_id ) { func ( ) ? ; // execute stored function
 } } , _ => self . window_events . process_all_messages ( wm_any ) ? , } ) }
Searches for all user functions for the given message, and runs all of
them, discarding the results.
Searches for all user functions for the given message and runs all of them discarding the results .
&self
wm_any
WndMsg