Struct windows::Win32::UI::Shell::IContextMenu3
pub struct IContextMenu3(/* private fields */);
Implementations§
§impl IContextMenu3
impl IContextMenu3
pub unsafe fn QueryContextMenu<P0>(
&self,
hmenu: P0,
indexmenu: u32,
idcmdfirst: u32,
idcmdlast: u32,
uflags: u32
) -> Result<()>where
P0: IntoParam<HMENU>,
pub unsafe fn InvokeCommand( &self, pici: *const CMINVOKECOMMANDINFO ) -> Result<()>
pub unsafe fn GetCommandString( &self, idcmd: usize, utype: u32, preserved: Option<*const u32>, pszname: PSTR, cchmax: u32 ) -> Result<()>
pub unsafe fn HandleMenuMsg<P0, P1>( &self, umsg: u32, wparam: P0, lparam: P1 ) -> Result<()>
pub unsafe fn HandleMenuMsg2<P0, P1>( &self, umsg: u32, wparam: P0, lparam: P1, plresult: Option<*mut LRESULT> ) -> Result<()>
Trait Implementations§
§impl Clone for IContextMenu3
impl Clone for IContextMenu3
§fn clone(&self) -> IContextMenu3
fn clone(&self) -> IContextMenu3
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IContextMenu3
impl Debug for IContextMenu3
§impl From<&IContextMenu3> for &IContextMenu
impl From<&IContextMenu3> for &IContextMenu
§fn from(value: &IContextMenu3) -> Self
fn from(value: &IContextMenu3) -> Self
Converts to this type from the input type.
§impl From<&IContextMenu3> for &IContextMenu2
impl From<&IContextMenu3> for &IContextMenu2
§fn from(value: &IContextMenu3) -> Self
fn from(value: &IContextMenu3) -> Self
Converts to this type from the input type.
§impl From<&IContextMenu3> for &IUnknown
impl From<&IContextMenu3> for &IUnknown
§fn from(value: &IContextMenu3) -> Self
fn from(value: &IContextMenu3) -> Self
Converts to this type from the input type.
§impl From<IContextMenu3> for IContextMenu
impl From<IContextMenu3> for IContextMenu
§fn from(value: IContextMenu3) -> Self
fn from(value: IContextMenu3) -> Self
Converts to this type from the input type.
§impl From<IContextMenu3> for IContextMenu2
impl From<IContextMenu3> for IContextMenu2
§fn from(value: IContextMenu3) -> Self
fn from(value: IContextMenu3) -> Self
Converts to this type from the input type.
§impl From<IContextMenu3> for IUnknown
impl From<IContextMenu3> for IUnknown
§fn from(value: IContextMenu3) -> Self
fn from(value: IContextMenu3) -> Self
Converts to this type from the input type.
§impl Interface for IContextMenu3
impl Interface for IContextMenu3
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IContextMenu3
impl PartialEq for IContextMenu3
§fn eq(&self, other: &IContextMenu3) -> bool
fn eq(&self, other: &IContextMenu3) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IContextMenu3
impl StructuralPartialEq for IContextMenu3
Auto Trait Implementations§
impl RefUnwindSafe for IContextMenu3
impl !Send for IContextMenu3
impl !Sync for IContextMenu3
impl Unpin for IContextMenu3
impl UnwindSafe for IContextMenu3
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more