pub struct HWND(/* private fields */);
Available on crate feature
user
only.Expand description
Handle to a window.
Trait Implementations§
source§impl Handle for HWND
impl Handle for HWND
source§const NULL: Self = _
const NULL: Self = _
Available on crate feature
kernel
only.The null, uninitialized handle; equals to
0
.source§const INVALID: Self = _
const INVALID: Self = _
Available on crate feature
kernel
only.The invalid handle; equals to
-1
. Read moresource§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
kernel
only.Creates a new handle object by wrapping a pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
kernel
only.Returns a mutable reference to the underlying raw pointer. Read more
source§unsafe fn raw_copy(&self) -> Self
unsafe fn raw_copy(&self) -> Self
Available on crate feature
kernel
only.Returns a raw copy of the underlying handle pointer. Read more
source§impl PartialEq for HWND
impl PartialEq for HWND
source§impl comctl_Hwnd for HWND
Available on crate feature comctl
only.
impl comctl_Hwnd for HWND
Available on crate feature
comctl
only.source§unsafe fn DefSubclassProc<M>(&self, msg: M) -> M::RetTypewhere
M: MsgSend,
unsafe fn DefSubclassProc<M>(&self, msg: M) -> M::RetTypewhere
M: MsgSend,
DefSubclassProc
function. Read moresource§fn InitializeFlatSB(&self) -> HrResult<()>
fn InitializeFlatSB(&self) -> HrResult<()>
InitializeFlatSB
function.source§fn RemoveWindowSubclass(
&self,
subclass_func: SUBCLASSPROC,
subclass_id: usize
) -> SysResult<()>
fn RemoveWindowSubclass( &self, subclass_func: SUBCLASSPROC, subclass_id: usize ) -> SysResult<()>
RemoveWindowSubclass
function.source§unsafe fn SetWindowSubclass(
&self,
subclass_proc: SUBCLASSPROC,
subclass_id: usize,
ref_data: usize
) -> SysResult<()>
unsafe fn SetWindowSubclass( &self, subclass_proc: SUBCLASSPROC, subclass_id: usize, ref_data: usize ) -> SysResult<()>
SetWindowSubclass
function. Read moresource§fn TaskDialog(
&self,
window_title: Option<&str>,
main_instruction: Option<&str>,
content: Option<&str>,
common_buttons: TDCBF,
icon: IconRes<'_>
) -> HrResult<DLGID>
fn TaskDialog( &self, window_title: Option<&str>, main_instruction: Option<&str>, content: Option<&str>, common_buttons: TDCBF, icon: IconRes<'_> ) -> HrResult<DLGID>
TaskDialog
function. Read moresource§fn UninitializeFlatSB(&self) -> HrResult<()>
fn UninitializeFlatSB(&self) -> HrResult<()>
UninitializeFlatSB
function.source§impl dwm_Hwnd for HWND
Available on crate feature dwm
only.
impl dwm_Hwnd for HWND
Available on crate feature
dwm
only.source§fn DwmExtendFrameIntoClientArea(&self, margins_inset: &MARGINS) -> HrResult<()>
fn DwmExtendFrameIntoClientArea(&self, margins_inset: &MARGINS) -> HrResult<()>
DwmExtendFrameIntoClientArea
function.source§fn DwmInvalidateIconicBitmaps(&self) -> HrResult<()>
fn DwmInvalidateIconicBitmaps(&self) -> HrResult<()>
DwmInvalidateIconicBitmaps
function.source§fn DwmSetIconicLivePreviewBitmap(
&self,
hbmp: HBITMAP,
pt_client: Option<POINT>,
sit_flags: Option<DWM_SIT>
) -> HrResult<()>
fn DwmSetIconicLivePreviewBitmap( &self, hbmp: HBITMAP, pt_client: Option<POINT>, sit_flags: Option<DWM_SIT> ) -> HrResult<()>
DwmSetIconicLivePreviewBitmap
function.source§fn DwmSetIconicThumbnail(
&self,
hbmp: HBITMAP,
sit_flags: Option<DWM_SIT>
) -> HrResult<()>
fn DwmSetIconicThumbnail( &self, hbmp: HBITMAP, sit_flags: Option<DWM_SIT> ) -> HrResult<()>
DwmSetIconicThumbnail
function.source§impl ole_Hwnd for HWND
Available on crate feature ole
only.
impl ole_Hwnd for HWND
Available on crate feature
ole
only.source§fn RegisterDragDrop(&self, drop_target: &IDropTarget) -> HrResult<()>
fn RegisterDragDrop(&self, drop_target: &IDropTarget) -> HrResult<()>
RegisterDragDrop
function.source§fn RevokeDragDrop(&self) -> HrResult<()>
fn RevokeDragDrop(&self) -> HrResult<()>
RevokeDragDrop
function.source§impl shell_Hwnd for HWND
Available on crate feature shell
only.
impl shell_Hwnd for HWND
Available on crate feature
shell
only.source§fn DragAcceptFiles(&self, accept: bool)
fn DragAcceptFiles(&self, accept: bool)
DragAcceptFiles
function.source§impl user_Hwnd for HWND
impl user_Hwnd for HWND
source§const BROADCAST: HWND = _
const BROADCAST: HWND = _
Represents all top-level windows in
HWND::PostMessage
and
HWND::SendMessage
.source§const DESKTOP: HWND = _
const DESKTOP: HWND = _
Represents the desktop window in
HWND::GetDC
.source§fn hinstance(&self) -> HINSTANCE
fn hinstance(&self) -> HINSTANCE
Calls
HWND::GetWindowLongPtr
to retrieve the window HINSTANCE
.source§fn is_dialog(&self) -> bool
fn is_dialog(&self) -> bool
Calls
HWND::GetClassLongPtr
to
retrieve the class atom
and check whether the window was created from a dialog resource.source§fn set_style(&self, style: impl Into<WS>)
fn set_style(&self, style: impl Into<WS>)
Calls
HWND::SetWindowLongPtr
to set the window styles.source§fn set_style_ex(&self, ex_style: impl Into<WS_EX>)
fn set_style_ex(&self, ex_style: impl Into<WS_EX>)
Calls
HWND::SetWindowLongPtr
to set the extended window styles.source§fn style(&self) -> WS
fn style(&self) -> WS
Calls
HWND::GetWindowLongPtr
to retrieve the window styles.source§fn style_ex(&self) -> WS_EX
fn style_ex(&self) -> WS_EX
Calls
HWND::GetWindowLongPtr
to retrieve the extended window styles.source§fn ArrangeIconicWindows(&self) -> SysResult<u32>
fn ArrangeIconicWindows(&self) -> SysResult<u32>
ArrangeIconicWindows
function.source§fn BeginPaint(&self) -> SysResult<EndPaintGuard<'_, Self>>
fn BeginPaint(&self) -> SysResult<EndPaintGuard<'_, Self>>
BeginPaint
function. Read moresource§fn BringWindowToTop(&self) -> SysResult<()>
fn BringWindowToTop(&self) -> SysResult<()>
BringWindowToTop
function.source§fn ChildWindowFromPoint(&self, pt: POINT) -> Option<HWND>
fn ChildWindowFromPoint(&self, pt: POINT) -> Option<HWND>
ChildWindowFromPoint
function.source§fn ClientToScreen(&self, pt: &mut POINT) -> SysResult<()>
fn ClientToScreen(&self, pt: &mut POINT) -> SysResult<()>
ClientToScreen
function. Read moresource§fn ClientToScreenRc(&self, rc: &mut RECT) -> SysResult<()>
fn ClientToScreenRc(&self, rc: &mut RECT) -> SysResult<()>
ClientToScreen
method for
a RECT
.source§fn CloseWindow(&self) -> SysResult<()>
fn CloseWindow(&self) -> SysResult<()>
CloseWindow
function. Read moresource§unsafe fn CreateWindowEx(
ex_style: WS_EX,
class_name: AtomStr,
title: Option<&str>,
style: WS,
pos: POINT,
size: SIZE,
hwnd_parent: Option<&HWND>,
hmenu: IdMenu<'_>,
hinstance: &HINSTANCE,
lparam: Option<isize>
) -> SysResult<HWND>
unsafe fn CreateWindowEx( ex_style: WS_EX, class_name: AtomStr, title: Option<&str>, style: WS, pos: POINT, size: SIZE, hwnd_parent: Option<&HWND>, hmenu: IdMenu<'_>, hinstance: &HINSTANCE, lparam: Option<isize> ) -> SysResult<HWND>
CreateWindowEx
function. Read moresource§unsafe fn DefWindowProc<M>(&self, msg: M) -> M::RetTypewhere
M: MsgSend,
unsafe fn DefWindowProc<M>(&self, msg: M) -> M::RetTypewhere
M: MsgSend,
DefWindowProc
function. Read moresource§fn DestroyWindow(&self) -> SysResult<()>
fn DestroyWindow(&self) -> SysResult<()>
DestroyWindow
function. Read moresource§fn DragDetect(&self, pt: POINT) -> bool
fn DragDetect(&self, pt: POINT) -> bool
DragDetect
function.source§fn DrawCaption(
&self,
hdc: &HDC,
rect: &RECT,
flags: Option<DC>
) -> SysResult<()>
fn DrawCaption( &self, hdc: &HDC, rect: &RECT, flags: Option<DC> ) -> SysResult<()>
DrawCaption
function.source§fn DrawMenuBar(&self) -> SysResult<()>
fn DrawMenuBar(&self) -> SysResult<()>
DrawMenuBar
function.source§fn EnableScrollBar(&self, sb_flags: SBB, arrows: ESB) -> SysResult<()>
fn EnableScrollBar(&self, sb_flags: SBB, arrows: ESB) -> SysResult<()>
EnableScrollBar
function.source§fn EnableWindow(&self, enable: bool) -> bool
fn EnableWindow(&self, enable: bool) -> bool
EnableWindow
function.source§fn EnumChildWindows<F>(&self, func: F)
fn EnumChildWindows<F>(&self, func: F)
EnumChildWindows
function. Read moresource§fn FindWindow(
class_name: Option<AtomStr>,
title: Option<&str>
) -> SysResult<Option<HWND>>
fn FindWindow( class_name: Option<AtomStr>, title: Option<&str> ) -> SysResult<Option<HWND>>
FindWindow
function.source§fn FindWindowEx(
&self,
hwnd_child_after: Option<&HWND>,
class_name: AtomStr,
title: Option<&str>
) -> SysResult<Option<HWND>>
fn FindWindowEx( &self, hwnd_child_after: Option<&HWND>, class_name: AtomStr, title: Option<&str> ) -> SysResult<Option<HWND>>
FindWindowEx
function.source§fn GetActiveWindow() -> Option<HWND>
fn GetActiveWindow() -> Option<HWND>
GetActiveWindow
function.source§fn GetAltTabInfo(
&self,
item: Option<u32>,
ati: &mut ALTTABINFO,
sz_item_text: Option<u32>
) -> SysResult<String>
fn GetAltTabInfo( &self, item: Option<u32>, ati: &mut ALTTABINFO, sz_item_text: Option<u32> ) -> SysResult<String>
GetAltTabInfo
function. Read moresource§fn GetAncestor(&self, flags: GA) -> Option<HWND>
fn GetAncestor(&self, flags: GA) -> Option<HWND>
GetAncestor
function.source§fn GetCapture() -> Option<HWND>
fn GetCapture() -> Option<HWND>
GetCapture
function.source§fn GetClassLongPtr(&self, index: GCLP) -> usize
fn GetClassLongPtr(&self, index: GCLP) -> usize
GetClassLongPtr
function. Read moresource§fn GetClassName(&self) -> SysResult<String>
fn GetClassName(&self) -> SysResult<String>
GetClassName
function.source§fn GetClientRect(&self) -> SysResult<RECT>
fn GetClientRect(&self) -> SysResult<RECT>
GetClientRect
function.source§fn GetDesktopWindow() -> HWND
fn GetDesktopWindow() -> HWND
GetDesktopWindow
function.source§fn GetDialogDpiChangeBehavior(&self) -> SysResult<DDC>
fn GetDialogDpiChangeBehavior(&self) -> SysResult<DDC>
GetDialogDpiChangeBehavior
function.source§fn GetDlgCtrlID(&self) -> SysResult<u16>
fn GetDlgCtrlID(&self) -> SysResult<u16>
GetDlgCtrlID
function.source§fn GetDlgItem(&self, ctrl_id: u16) -> SysResult<HWND>
fn GetDlgItem(&self, ctrl_id: u16) -> SysResult<HWND>
GetDlgItem
function.source§fn GetDpiForWindow(&self) -> u32
fn GetDpiForWindow(&self) -> u32
GetDpiForWindow
function.source§fn GetForegroundWindow() -> Option<HWND>
fn GetForegroundWindow() -> Option<HWND>
GetForegroundWindow
function.source§fn GetLastActivePopup(&self) -> Option<HWND>
fn GetLastActivePopup(&self) -> Option<HWND>
GetLastActivePopup
function.source§fn GetMenuBarInfo(
&self,
obj_id: OBJID,
item_id: u32,
mbi: &mut MENUBARINFO
) -> SysResult<()>
fn GetMenuBarInfo( &self, obj_id: OBJID, item_id: u32, mbi: &mut MENUBARINFO ) -> SysResult<()>
GetMenuBarInfo
function.source§fn GetMenuItemRect(&self, hmenu: &HMENU, item_pos: u32) -> SysResult<RECT>
fn GetMenuItemRect(&self, hmenu: &HMENU, item_pos: u32) -> SysResult<RECT>
GetMenuItemRect
function.source§fn GetNextDlgGroupItem(
&self,
hwnd_ctrl: &HWND,
previous: bool
) -> SysResult<HWND>
fn GetNextDlgGroupItem( &self, hwnd_ctrl: &HWND, previous: bool ) -> SysResult<HWND>
GetNextDlgGroupItem
function.source§fn GetNextDlgTabItem(&self, hwnd_ctrl: &HWND, previous: bool) -> SysResult<HWND>
fn GetNextDlgTabItem(&self, hwnd_ctrl: &HWND, previous: bool) -> SysResult<HWND>
GetNextDlgTabItem
function.source§fn GetScrollInfo(&self, bar: SBB, si: &mut SCROLLINFO) -> SysResult<()>
fn GetScrollInfo(&self, bar: SBB, si: &mut SCROLLINFO) -> SysResult<()>
GetScrollInfo
function.source§fn GetScrollPos(&self, bar: SBB) -> SysResult<i32>
fn GetScrollPos(&self, bar: SBB) -> SysResult<i32>
GetScrollPos
function.source§fn GetShellWindow() -> Option<HWND>
fn GetShellWindow() -> Option<HWND>
GetShellWindow
function.source§fn GetSystemMenu(&self, revert: bool) -> Option<HMENU>
fn GetSystemMenu(&self, revert: bool) -> Option<HMENU>
GetSystemMenu
function.source§fn GetTopWindow(&self) -> SysResult<Option<HWND>>
fn GetTopWindow(&self) -> SysResult<Option<HWND>>
GetTopWindow
function.source§fn GetUpdateRect(&self, erase: bool) -> Option<RECT>
fn GetUpdateRect(&self, erase: bool) -> Option<RECT>
GetUpdateRect
function.source§fn GetUpdateRgn(&self, hrgn: &HRGN, erase: bool) -> SysResult<REGION>
fn GetUpdateRgn(&self, hrgn: &HRGN, erase: bool) -> SysResult<REGION>
GetUpdateRgn
function.source§fn GetWindowDC(&self) -> SysResult<ReleaseDCGuard<'_, Self>>
fn GetWindowDC(&self) -> SysResult<ReleaseDCGuard<'_, Self>>
GetWindowDC
function.source§fn GetWindowDisplayAffinity(&self) -> SysResult<WDA>
fn GetWindowDisplayAffinity(&self) -> SysResult<WDA>
GetWindowDisplayAffinity
function.source§fn GetWindowDpiHostingBehavior(&self) -> DPI_HOSTING_BEHAVIOR
fn GetWindowDpiHostingBehavior(&self) -> DPI_HOSTING_BEHAVIOR
GetWindowDpiHostingBehavior
function.source§fn GetWindowInfo(&self, wi: &mut WINDOWINFO) -> SysResult<()>
fn GetWindowInfo(&self, wi: &mut WINDOWINFO) -> SysResult<()>
GetWindowInfo
function.source§fn GetWindowLongPtr(&self, index: GWLP) -> isize
fn GetWindowLongPtr(&self, index: GWLP) -> isize
source§fn GetWindowModuleFileName(&self) -> String
fn GetWindowModuleFileName(&self) -> String
GetWindowModuleFileName
function.source§fn GetWindowPlacement(&self, wp: &mut WINDOWPLACEMENT) -> SysResult<()>
fn GetWindowPlacement(&self, wp: &mut WINDOWPLACEMENT) -> SysResult<()>
GetWindowPlacement
function.source§fn GetWindowRect(&self) -> SysResult<RECT>
fn GetWindowRect(&self) -> SysResult<RECT>
GetWindowRect
function.source§fn GetWindowRgn(&self, hrgn: &HRGN) -> SysResult<REGION>
fn GetWindowRgn(&self, hrgn: &HRGN) -> SysResult<REGION>
GetWindowRgn
function.source§fn GetWindowRgnBox(&self) -> SysResult<(RECT, REGION)>
fn GetWindowRgnBox(&self) -> SysResult<(RECT, REGION)>
GetWindowRgnBox
function.source§fn GetWindowText(&self) -> SysResult<String>
fn GetWindowText(&self) -> SysResult<String>
GetWindowText
function. Read moresource§fn GetWindowTextLength(&self) -> SysResult<i32>
fn GetWindowTextLength(&self) -> SysResult<i32>
GetWindowTextLength
function. Read moresource§fn GetWindowThreadProcessId(&self) -> (u32, u32)
fn GetWindowThreadProcessId(&self) -> (u32, u32)
GetWindowThreadProcessId
function. Read moresource§fn HiliteMenuItem(&self, hmenu: &HMENU, id_or_pos: IdPos, hilite: bool) -> bool
fn HiliteMenuItem(&self, hmenu: &HMENU, id_or_pos: IdPos, hilite: bool) -> bool
HiliteMenuItem
function.source§fn InheritWindowMonitor(&self, hwnd_inherit: &HWND) -> SysResult<()>
fn InheritWindowMonitor(&self, hwnd_inherit: &HWND) -> SysResult<()>
InheritWindowMonitor
function.source§fn InvalidateRect(&self, rc: Option<&RECT>, erase: bool) -> SysResult<()>
fn InvalidateRect(&self, rc: Option<&RECT>, erase: bool) -> SysResult<()>
InvalidateRect
function. Read moresource§fn InvalidateRgn(&self, hrgn: &HRGN, erase: bool)
fn InvalidateRgn(&self, hrgn: &HRGN, erase: bool)
InvalidateRgn
function.source§fn IsDialogMessage(&self, msg: &mut MSG) -> bool
fn IsDialogMessage(&self, msg: &mut MSG) -> bool
IsDialogMessage
function.source§fn IsWindowEnabled(&self) -> bool
fn IsWindowEnabled(&self) -> bool
IsWindowEnabled
function.source§fn IsWindowUnicode(&self) -> bool
fn IsWindowUnicode(&self) -> bool
IsWindowUnicode
function.source§fn IsWindowVisible(&self) -> bool
fn IsWindowVisible(&self) -> bool
IsWindowVisible
function.source§fn LockWindowUpdate(&self) -> SysResult<()>
fn LockWindowUpdate(&self) -> SysResult<()>
LockWindowUpdate
function. Read moresource§fn LogicalToPhysicalPoint(&self, pt: *mut POINT) -> SysResult<()>
fn LogicalToPhysicalPoint(&self, pt: *mut POINT) -> SysResult<()>
LogicalToPhysicalPoint
function.source§fn MapDialogRect(&self, rc: &mut RECT) -> SysResult<()>
fn MapDialogRect(&self, rc: &mut RECT) -> SysResult<()>
MapDialogRect
function.source§fn MapWindowPoints(
&self,
hdest: &HWND,
points: PtsRc<'_>
) -> SysResult<(i16, i16)>
fn MapWindowPoints( &self, hdest: &HWND, points: PtsRc<'_> ) -> SysResult<(i16, i16)>
MapWindowPoints
function. Read moresource§fn MessageBox(&self, text: &str, caption: &str, flags: MB) -> SysResult<DLGID>
fn MessageBox(&self, text: &str, caption: &str, flags: MB) -> SysResult<DLGID>
MessageBox
function. Read moresource§fn MonitorFromWindow(&self, flags: MONITOR) -> HMONITOR
fn MonitorFromWindow(&self, flags: MONITOR) -> HMONITOR
MonitorFromWindow
function.source§fn MoveWindow(&self, pos: POINT, size: SIZE, repaint: bool) -> SysResult<()>
fn MoveWindow(&self, pos: POINT, size: SIZE, repaint: bool) -> SysResult<()>
MoveWindow
function.source§fn OpenClipboard(&self) -> SysResult<CloseClipboardGuard<'_>>
fn OpenClipboard(&self) -> SysResult<CloseClipboardGuard<'_>>
OpenClipboard
function. Read moresource§unsafe fn PostMessage<M>(&self, msg: M) -> SysResult<()>
unsafe fn PostMessage<M>(&self, msg: M) -> SysResult<()>
PostMessage
function. Read moresource§fn RealChildWindowFromPoint(
&self,
pt_parent_client_coords: POINT
) -> Option<HWND>
fn RealChildWindowFromPoint( &self, pt_parent_client_coords: POINT ) -> Option<HWND>
RealChildWindowFromPoint
function.source§fn RealGetWindowClass(&self) -> SysResult<String>
fn RealGetWindowClass(&self) -> SysResult<String>
RealGetWindowClass
function.source§fn RedrawWindow(
&self,
rc_update: &RECT,
hrgn_update: &HRGN,
flags: RDW
) -> SysResult<()>
fn RedrawWindow( &self, rc_update: &RECT, hrgn_update: &HRGN, flags: RDW ) -> SysResult<()>
RedrawWindow
function.source§fn RegisterHotKey(
&self,
id: i32,
modifiers: MOD,
vkey_code: VK
) -> SysResult<()>
fn RegisterHotKey( &self, id: i32, modifiers: MOD, vkey_code: VK ) -> SysResult<()>
RegisterHotKey
function.source§fn ScreenToClient(&self, pt: &mut POINT) -> SysResult<()>
fn ScreenToClient(&self, pt: &mut POINT) -> SysResult<()>
ScreenToClient
function. Read moresource§fn ScreenToClientRc(&self, rc: &mut RECT) -> SysResult<()>
fn ScreenToClientRc(&self, rc: &mut RECT) -> SysResult<()>
ScreenToClient
method for
a RECT
.source§fn ScrollWindowEx(
&self,
dx: i32,
dy: i32,
client_area_portion: Option<&RECT>,
clipping_rect: Option<&RECT>,
hrgn_update: Option<&HRGN>,
updated_boundaries: Option<&mut RECT>,
flags: SCROLLW
) -> SysResult<REGION>
fn ScrollWindowEx( &self, dx: i32, dy: i32, client_area_portion: Option<&RECT>, clipping_rect: Option<&RECT>, hrgn_update: Option<&HRGN>, updated_boundaries: Option<&mut RECT>, flags: SCROLLW ) -> SysResult<REGION>
ScrollWindowEx
function.source§unsafe fn SendMessage<M>(&self, msg: M) -> M::RetTypewhere
M: MsgSend,
unsafe fn SendMessage<M>(&self, msg: M) -> M::RetTypewhere
M: MsgSend,
SendMessage
function. Read moresource§unsafe fn SendMessageTimeout<M>(
&self,
msg: M,
flags: SMTO,
timeout_ms: u32
) -> SysResult<M::RetType>where
M: MsgSend,
unsafe fn SendMessageTimeout<M>(
&self,
msg: M,
flags: SMTO,
timeout_ms: u32
) -> SysResult<M::RetType>where
M: MsgSend,
SendMessageTimeout
function. Read moresource§fn SetActiveWindow(&self) -> SysResult<HWND>
fn SetActiveWindow(&self) -> SysResult<HWND>
SetActiveWindow
function.source§fn SetCapture(&self) -> ReleaseCaptureGuard<'_, Self>
fn SetCapture(&self) -> ReleaseCaptureGuard<'_, Self>
SetCapture
function.source§fn SetDialogDpiChangeBehavior(&self, mask: DDC, values: DDC) -> SysResult<()>
fn SetDialogDpiChangeBehavior(&self, mask: DDC, values: DDC) -> SysResult<()>
SetDialogDpiChangeBehavior
function.source§fn SetForegroundWindow(&self) -> bool
fn SetForegroundWindow(&self) -> bool
SetForegroundWindow
function.source§fn SetLayeredWindowAttributes(
&self,
transparency_color_key: COLORREF,
alpha: u8,
flags: LWA
) -> SysResult<()>
fn SetLayeredWindowAttributes( &self, transparency_color_key: COLORREF, alpha: u8, flags: LWA ) -> SysResult<()>
SetLayeredWindowAttributes
function.source§fn SetScrollInfo(&self, bar: SBB, si: &SCROLLINFO, redraw: bool) -> i32
fn SetScrollInfo(&self, bar: SBB, si: &SCROLLINFO, redraw: bool) -> i32
SetScrollInfo
function.source§fn SetScrollPos(&self, b: SBB, pos: i32, redraw: bool) -> SysResult<i32>
fn SetScrollPos(&self, b: SBB, pos: i32, redraw: bool) -> SysResult<i32>
SetScrollPos
function.source§fn SetScrollRange(
&self,
bar: SBB,
min_pos: i32,
max_pos: i32,
redraw: bool
) -> SysResult<()>
fn SetScrollRange( &self, bar: SBB, min_pos: i32, max_pos: i32, redraw: bool ) -> SysResult<()>
SetScrollRange
function.source§fn SetTimer(
&self,
event_id: usize,
elapse_ms: u32,
timer_func: Option<TIMERPROC>
) -> SysResult<usize>
fn SetTimer( &self, event_id: usize, elapse_ms: u32, timer_func: Option<TIMERPROC> ) -> SysResult<usize>
This method returns the timer ID, to be passed to
HWND::KillTimer
. Read moresource§fn SetWindowDisplayAffinity(&self, affinity: WDA) -> SysResult<()>
fn SetWindowDisplayAffinity(&self, affinity: WDA) -> SysResult<()>
SetWindowDisplayAffinity
function.source§unsafe fn SetWindowLongPtr(&self, index: GWLP, new_long: isize) -> isize
unsafe fn SetWindowLongPtr(&self, index: GWLP, new_long: isize) -> isize
SetWindowLongPtr
function. Read moresource§fn SetWindowPlacement(&self, wp: &WINDOWPLACEMENT) -> SysResult<()>
fn SetWindowPlacement(&self, wp: &WINDOWPLACEMENT) -> SysResult<()>
SetWindowPlacement
function.source§fn SetWindowPos(
&self,
hwnd_insert_after: HwndPlace,
pos: POINT,
size: SIZE,
flags: SWP
) -> SysResult<()>
fn SetWindowPos( &self, hwnd_insert_after: HwndPlace, pos: POINT, size: SIZE, flags: SWP ) -> SysResult<()>
SetWindowPos
function. Read moresource§fn SetWindowRgn(&self, hrgn: &HRGN, redraw: bool) -> SysResult<()>
fn SetWindowRgn(&self, hrgn: &HRGN, redraw: bool) -> SysResult<()>
SetWindowRgn
function.source§fn SetWindowText(&self, text: &str) -> SysResult<()>
fn SetWindowText(&self, text: &str) -> SysResult<()>
SetWindowText
function.source§fn ShowOwnedPopups(&self, show: bool) -> SysResult<()>
fn ShowOwnedPopups(&self, show: bool) -> SysResult<()>
ShowOwnedPopups
function.source§fn ShowWindow(&self, show_cmd: SW) -> bool
fn ShowWindow(&self, show_cmd: SW) -> bool
ShowWindow
function.source§fn ShowWindowAsync(&self, show_cmd: SW) -> SysResult<()>
fn ShowWindowAsync(&self, show_cmd: SW) -> SysResult<()>
ShowWindowAsync
function.source§fn TileWindows(
&self,
how: MDITILE,
rect: Option<RECT>,
kids: Option<&[&HWND]>
) -> SysResult<u16>
fn TileWindows( &self, how: MDITILE, rect: Option<RECT>, kids: Option<&[&HWND]> ) -> SysResult<u16>
TileWindows
function.source§fn TranslateAccelerator(
&self,
haccel_table: &HACCEL,
msg: &mut MSG
) -> SysResult<()>
fn TranslateAccelerator( &self, haccel_table: &HACCEL, msg: &mut MSG ) -> SysResult<()>
TranslateAccelerator
function.source§fn UnregisterHotKey(&self, id: i32) -> SysResult<()>
fn UnregisterHotKey(&self, id: i32) -> SysResult<()>
UnregisterHotKey
function.source§fn UpdateLayeredWindow(
&self,
hdc_dest: Option<&HDC>,
pt_dest: Option<&POINT>,
size: Option<&SIZE>,
hdc_src: Option<&HDC>,
pt_src: Option<&POINT>,
key: COLORREF,
blend: &BLENDFUNCTION,
flags: ULW
) -> SysResult<()>
fn UpdateLayeredWindow( &self, hdc_dest: Option<&HDC>, pt_dest: Option<&POINT>, size: Option<&SIZE>, hdc_src: Option<&HDC>, pt_src: Option<&POINT>, key: COLORREF, blend: &BLENDFUNCTION, flags: ULW ) -> SysResult<()>
UpdateLayeredWindow
function.source§fn UpdateWindow(&self) -> SysResult<()>
fn UpdateWindow(&self) -> SysResult<()>
UpdateWindow
function.source§fn ValidateRect(&self, rc: &RECT) -> SysResult<()>
fn ValidateRect(&self, rc: &RECT) -> SysResult<()>
ValidateRect
function.source§fn ValidateRgn(&self, hrgn: &HRGN) -> SysResult<()>
fn ValidateRgn(&self, hrgn: &HRGN) -> SysResult<()>
ValidateRgn
function.source§fn WindowFromPhysicalPoint(pt: POINT) -> Option<HWND>
fn WindowFromPhysicalPoint(pt: POINT) -> Option<HWND>
WindowFromPhysicalPoint
function.source§fn WindowFromPoint(pt: POINT) -> Option<HWND>
fn WindowFromPoint(pt: POINT) -> Option<HWND>
WindowFromPoint
function.source§impl uxtheme_Hwnd for HWND
Available on crate feature uxtheme
only.
impl uxtheme_Hwnd for HWND
Available on crate feature
uxtheme
only.source§fn OpenThemeData(&self, class_list: &str) -> Option<CloseThemeDataGuard>
fn OpenThemeData(&self, class_list: &str) -> Option<CloseThemeDataGuard>
OpenThemeData
function.impl Eq for HWND
impl Send for HWND
impl StructuralPartialEq for HWND
Auto Trait Implementations§
impl Freeze for HWND
impl RefUnwindSafe for HWND
impl !Sync for HWND
impl Unpin for HWND
impl UnwindSafe for HWND
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