1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
use crate::co;
use crate::decl::*;
/// Type alias to
/// [`PFNLVCOMPARE`](https://learn.microsoft.com/en-us/windows/win32/controls/lvm-sortitems)
/// callback function.
pub type PFNLVCOMPARE =
extern "system" fn(
lParam1: isize,
lParam2: isize,
lParamSort: isize,
) -> i32;
/// Type alias to
/// [`PFNLVGROUPCOMPARE`](https://learn.microsoft.com/en-us/windows/win32/api/commctrl/nc-commctrl-pfnlvgroupcompare)
/// callback function.
pub type PFNLVGROUPCOMPARE =
extern "system" fn(
groupId1: i32,
groupId2: i32,
lpRefData: isize,
) -> i32;
/// Type alias to
/// [`PFNTVCOMPARE`](https://learn.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-tvsortcb)
/// callback function.
pub type PFNTVCOMPARE =
extern "system" fn(
lParam1: isize,
lParam2: isize,
lParamSort: isize,
) -> i32;
/// Type alias to
/// [`PFTASKDIALOGCALLBACK`](https://learn.microsoft.com/en-us/windows/win32/api/commctrl/nc-commctrl-pftaskdialogcallback)
/// calback function.
pub type PFTASKDIALOGCALLBACK =
extern "system" fn(
hWnd: HWND,
msg: co::TDN,
wParam: usize,
lParam: isize,
lpRefData: usize,
) -> co::HRESULT;
/// Type alias to
/// [`SUBCLASSPROC`](https://learn.microsoft.com/en-us/windows/win32/api/commctrl/nc-commctrl-subclassproc)
/// callback function.
pub type SUBCLASSPROC =
extern "system" fn(
hWnd: HWND,
uMsg: co::WM,
wParam: usize,
lParam: isize,
uIdSubclass: usize,
dwRefData: usize,
) -> isize;