pub fn wm_command<F>(&self, code: impl Into<co::CMD>, ctrl_id: u16, func: F)
		where F: Fn() -> ErrResult<()> + 'static,
	{
		let code: co::CMD = code.into();
		self.cmds.push((code, ctrl_id), Box::new(func));
	}
/// [`WM_COMMAND`](https://docs.microsoft.com/en-us/windows/win32/menurc/wm-command)
/// message, for specific code and control ID.
///
/// A command notification must be narrowed by the
/// [command code](crate::co::CMD) and the control ID, so the closure will
/// be fired for that specific control at that specific event.
///
/// **Note:** Instead of using this event, you should always prefer the
/// specific command notifications, which will give you the correct message
/// parameters. This generic method should be used only when you have a
/// custom, non-standard window notification.

[`WM_COMMAND`]
message, for specific code and control ID.

A command notification must be narrowed by the
[command code](crate::co::CMD) and the control ID, so the closure will
be fired for that specific control at that specific event.

Instead of using this event, you should always prefer the
specific command notifications, which will give you the correct message
parameters. This generic method should be used only when you have a
custom, non-standard window notification.
[ ` WM_COMMAND ` ] message for specific code and control ID . A command notification must be narrowed by the [ command code ] ( crate :: co :: CMD ) and the control ID so the closure will be fired for that specific control at that specific event . Instead of using this event you should always prefer the specific command notifications which will give you the correct message parameters . This generic method should be used only when you have a custom non - standard window notification .
pub fn wm_command<F>(&self, code: impl Into<co::CMD>, ctrl_id: u16, func: F)
		where F: Fn() -> ErrResult<()> + 'static,
	{
		let code: co::CMD = code.into();
		self.cmds.push((code, ctrl_id), Box::new(func));
	}
pub fn wm_command < F > ( & self , code : impl Into < co :: CMD > , ctrl_id : u16 , func : F ) where F : Fn ( ) -> ErrResult < ( ) > + ' static , { let code : co :: CMD = code . into ( ) ; self . cmds . push ( ( code , ctrl_id ) , Box :: new ( func ) ) ; }
[`WM_COMMAND`](https://docs.microsoft.com/en-us/windows/win32/menurc/wm-command)
message, for specific code and control ID.
[ ` WM_COMMAND ` ] ( https : // docs . microsoft . com / en - us / windows / win32 / menurc / wm - command ) message for specific code and control ID .
&self
code
impl Into<co::CMD>
ctrl_id
u16
func
F
&self
code
impl Into<co::CMD>
ctrl_id
u16
func
F