windows: Implement ResizeColumn
and ResizeRow
cursor style (#11533)
This PR follows up #11406 Release Notes: - N/A
This commit is contained in:
parent
91c1716858
commit
fb4c6dbaa7
1 changed files with 8 additions and 6 deletions
|
@ -118,12 +118,14 @@ pub(crate) fn load_cursor(style: CursorStyle) -> HCURSOR {
|
||||||
CursorStyle::IBeam | CursorStyle::IBeamCursorForVerticalLayout => (&IBEAM, IDC_IBEAM),
|
CursorStyle::IBeam | CursorStyle::IBeamCursorForVerticalLayout => (&IBEAM, IDC_IBEAM),
|
||||||
CursorStyle::Crosshair => (&CROSS, IDC_CROSS),
|
CursorStyle::Crosshair => (&CROSS, IDC_CROSS),
|
||||||
CursorStyle::PointingHand | CursorStyle::DragLink => (&HAND, IDC_HAND),
|
CursorStyle::PointingHand | CursorStyle::DragLink => (&HAND, IDC_HAND),
|
||||||
CursorStyle::ResizeLeft | CursorStyle::ResizeRight | CursorStyle::ResizeLeftRight => {
|
CursorStyle::ResizeLeft
|
||||||
(&SIZEWE, IDC_SIZEWE)
|
| CursorStyle::ResizeRight
|
||||||
}
|
| CursorStyle::ResizeLeftRight
|
||||||
CursorStyle::ResizeUp | CursorStyle::ResizeDown | CursorStyle::ResizeUpDown => {
|
| CursorStyle::ResizeColumn => (&SIZEWE, IDC_SIZEWE),
|
||||||
(&SIZENS, IDC_SIZENS)
|
CursorStyle::ResizeUp
|
||||||
}
|
| CursorStyle::ResizeDown
|
||||||
|
| CursorStyle::ResizeUpDown
|
||||||
|
| CursorStyle::ResizeRow => (&SIZENS, IDC_SIZENS),
|
||||||
CursorStyle::OperationNotAllowed => (&NO, IDC_NO),
|
CursorStyle::OperationNotAllowed => (&NO, IDC_NO),
|
||||||
_ => (&ARROW, IDC_ARROW),
|
_ => (&ARROW, IDC_ARROW),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue