pub struct Header(/* private fields */);
gui
only.Expand description
Native header control.
Implementations§
source§impl Header
impl Header
sourcepub fn new(parent: &impl GuiParent, opts: HeaderOpts) -> Self
pub fn new(parent: &impl GuiParent, opts: HeaderOpts) -> Self
Instantiates a new Header
object, to be created on the parent window
with
HWND::CreateWindowEx
.
§Panics
Panics if the parent window was already created – that is, you cannot
dynamically create a Header
in an event closure.
sourcepub fn new_dlg(
parent: &impl GuiParent,
ctrl_id: u16,
resize_behavior: (Horz, Vert)
) -> Self
pub fn new_dlg( parent: &impl GuiParent, ctrl_id: u16, resize_behavior: (Horz, Vert) ) -> Self
Instantiates a new Header
object, to be loaded from a dialog
resource with
HWND::GetDlgItem
.
§Panics
Panics if the parent dialog was already created – that is, you cannot
dynamically create a Header
in an event closure.
sourcepub fn from_list_view<T: 'static>(list_view: &ListView<T>) -> Self
pub fn from_list_view<T: 'static>(list_view: &ListView<T>) -> Self
Instantiates a new Header
object to be loaded from a
ListView
control. This will give you access to
the inner Header
control of that ListView
.
sourcepub fn image_list(&self, kind: HDSIL) -> Option<&HIMAGELIST>
pub fn image_list(&self, kind: HDSIL) -> Option<&HIMAGELIST>
Retrieves a reference to one of the associated image lists by sending an
hdm::GetImageList
message.
The image list is owned by the control.
sourcepub const fn items(&self) -> HeaderItems<'_>
pub const fn items(&self) -> HeaderItems<'_>
Exposes the item methods.
sourcepub fn set_image_list(
&self,
kind: HDSIL,
himagelist: ImageListDestroyGuard
) -> Option<ImageListDestroyGuard>
pub fn set_image_list( &self, kind: HDSIL, himagelist: ImageListDestroyGuard ) -> Option<ImageListDestroyGuard>
Sets the one of the associated image lists by sending an
hdm::SetImageList
message.
The image list will be owned by the control. Returns the previous one, if any.
Trait Implementations§
source§impl GuiChildFocus for Header
impl GuiChildFocus for Header
source§fn focus(&self)
fn focus(&self)
HWND:SetFocus
. Read more