pub struct SetText {
pub text: *const u16,
}
Available on crate feature
user
only.Expand description
WM_SETTEXT
message parameters.
Return type: bool
.
§Examples
use winsafe::{self as w, prelude::*, msg};
let hwnd: w::HWND; // initialized somewhere
let new_text = w::WString::from_str("some text");
hwnd.SendMessage(
msg::wm::SetText {
text: unsafe { new_text.as_ptr() },
},
);
Fields§
§text: *const u16
Trait Implementations§
source§impl MsgSend for SetText
impl MsgSend for SetText
source§fn convert_ret(&self, v: isize) -> Self::RetType
fn convert_ret(&self, v: isize) -> Self::RetType
Converts the generic
isize
return value to the specific type returned
by the message.source§fn as_generic_wm(&mut self) -> WndMsg
fn as_generic_wm(&mut self) -> WndMsg
Converts the specific message parameters struct into the generic
WndMsg
message struct.source§impl MsgSendRecv for SetText
impl MsgSendRecv for SetText
source§fn from_generic_wm(p: WndMsg) -> Self
fn from_generic_wm(p: WndMsg) -> Self
Converts the generic
WndMsg
parameters struct
into the specific message struct.Auto Trait Implementations§
impl RefUnwindSafe for SetText
impl !Send for SetText
impl !Sync for SetText
impl Unpin for SetText
impl UnwindSafe for SetText
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