#![allow(unused_doc_comments)]
#[cfg(any(
feature = "windows-subsystem-paint",
feature = "windows-subsystem-updateregion",
feature = "graphics-subsystem-basic"
))]
use windows_sys::Win32::Graphics::Gdi as gdi;
#[cfg(any(
feature = "windows-subsystem-clipboard",
feature = "windows-subsystem-atom"
))]
use windows_sys::Win32::System::DataExchange as sysdx;
#[cfg(any(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-button",
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-scroll",
))]
use windows_sys::Win32::UI::Controls as ctrls;
#[cfg(feature = "windows-subsystem-basic")]
use windows_sys::Win32::UI::Input::KeyboardAndMouse as kbdmse;
use windows_sys::Win32::UI::WindowsAndMessaging as winmsg;
pub use winmsg::CallWindowProcW as CallWindowProc;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::DispatchMessageW as DispatchMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessageW as GetMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::PeekMessageW as PeekMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::WaitMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessagePos;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessageTime;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::InSendMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::ReplyMessage;
removed_item!(
pub use winmsg::PostAppMessage;
);
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::PostMessageW as PostMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::PostQuitMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::SendMessageW as SendMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::SetMessageQueue;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::TranslateAcceleratorW as TranslateAccelerator;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-mdi"
))]
pub use winmsg::TranslateMDISysAccel;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::TranslateMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::RegisterWindowMessageW as RegisterWindowMessage;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetMessageExtraInfo;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::MSG;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-button"
))]
pub mod window_messages_for_button;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-combobox"
))]
pub mod window_messages_for_combobox;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-dialogbox"
))]
pub mod window_messages_for_dialogbox;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-edit"
))]
pub mod window_messages_for_edit;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-listbox"
))]
pub mod window_messages_for_listbox;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-static"
))]
pub mod window_messages_for_static;
#[cfg(feature = "windows-subsystem-message")]
pub mod general_window_messages;
#[cfg(all(
feature = "windows-subsystem-message",
any(
feature = "windows-subsystem-control-combobox",
feature = "windows-subsystem-control-listbox"
)
))]
pub use ctrls::COMPAREITEMSTRUCT;
#[cfg(all(
feature = "windows-subsystem-message",
any(
feature = "windows-subsystem-control-combobox",
feature = "windows-subsystem-control-listbox"
)
))]
pub use ctrls::DELETEITEMSTRUCT;
#[cfg(feature = "windows-subsystem-message")]
pub use ctrls::DRAWITEMSTRUCT;
#[cfg(feature = "windows-subsystem-message")]
pub use ctrls::MEASUREITEMSTRUCT;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::MINMAXINFO;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-button"
))]
pub mod control_notifications_for_button;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-combobox"
))]
pub mod control_notifications_for_combobox;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-edit"
))]
pub mod control_notifications_for_edit;
#[cfg(all(
feature = "windows-subsystem-message",
feature = "windows-subsystem-control-listbox"
))]
pub mod control_notifications_for_listbox;
#[cfg(feature = "windows-subsystem-message")]
pub use winmsg::GetQueueStatus;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::RegisterClassW as RegisterClass;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::UnregisterClassW as UnregisterClass;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassInfoW as GetClassInfo;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::WNDCLASSW as WNDCLASS;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassNameW as GetClassName;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassWord;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetClassWord;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetClassLongW as GetClassLong;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetClassLongW as SetClassLong;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetWindowLongW as SetWindowLong;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg_polyfill::CreateWindowW as CreateWindow;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::CreateWindowExW as CreateWindowEx;
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::CLIENTCREATESTRUCT;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::CREATESTRUCTW as CREATESTRUCT;
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::MDICREATESTRUCTW as MDICREATESTRUCT;
#[cfg(feature = "windows-subsystem-basic")]
pub mod general_window_styles;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-control-button"
))]
pub mod window_styles_for_button;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-control-combobox"
))]
pub mod window_styles_for_combobox;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-control-edit"
))]
pub mod window_styles_for_edit;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-control-listbox"
))]
pub mod window_styles_for_listbox;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-control-scrollbar"
))]
pub mod window_styles_for_scrollbar;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-control-static"
))]
pub mod window_styles_for_static;
#[cfg(all(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-dialogbox"
))]
pub mod window_styles_for_dialogbox;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::DestroyWindow;
#[cfg(feature = "windows-subsystem-basic")]
pub type WindowProc = opt_inner_type!(winmsg::WNDPROC);
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::DefDlgProcW as DefDlgProc;
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::DefFrameProcW as DefFrameProc;
#[cfg(feature = "windows-subsystem-mdi")]
pub use winmsg::DefMDIChildProcW as DefMDIChildProc;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::DefWindowProcW as DefWindowProc;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindowWord;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindowLongW as GetWindowLong;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetWindowWord;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::BeginDeferWindowPos;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::EndDeferWindowPos;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::WINDOWPOS;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::DeferWindowPos;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::SetWindowPos;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::ShowWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsWindowVisible;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::ArrangeIconicWindows;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::OpenIcon;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::BringWindowToTop;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::CloseWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsIconic;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsZoomed;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::ShowOwnedPopups;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::IsWindowEnabled;
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::EnableWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::GetActiveWindow;
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::SetActiveWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::GetCapture;
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::SetCapture;
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::ReleaseCapture;
#[cfg(feature = "windows-subsystem-reflect")]
pub use kbdmse::GetFocus;
#[cfg(feature = "windows-subsystem-basic")]
pub use kbdmse::SetFocus;
removed_item!(
pub use kbdmse::GetSysModalWindow;
);
#[cfg(feature = "windows-subsystem-management")]
pub use winmsg::AnyPopup;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetLastActivePopup;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::IsChild;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetParent;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetParent;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetTopWindow;
removed_item!(
pub use winmsg::GetNextWindow;
);
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::MoveWindow;
#[cfg(feature = "windows-subsystem-management")]
pub use winmsg::GetDesktopWindow;
#[cfg(feature = "windows-subsystem-reflect")]
pub use winmsg::GetWindowPlacement;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::SetWindowPlacement;
#[cfg(feature = "windows-subsystem-placement")]
pub use winmsg::WINDOWPLACEMENT;
#[cfg(feature = "windows-subsystem-compute")]
pub use winmsg::AdjustWindowRect;
#[cfg(feature = "windows-subsystem-compute")]
pub use winmsg::AdjustWindowRectEx;
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
))]
pub use winmsg::GetClientRect;
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
))]
pub use winmsg::GetWindowRect;
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
))]
pub use winmsg::GetWindowTextW as GetWindowText;
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
))]
pub use winmsg::GetWindowTextLengthW as GetWindowTextLength;
#[cfg(feature = "windows-subsystem-basic")]
pub use winmsg::SetWindowTextW as SetWindowText;
#[cfg(feature = "windows-subsystem-management")]
pub use winmsg::EnumWindows;
#[cfg(feature = "windows-subsystem-management")]
pub type EnumWindowsProc = opt_inner_type!(winmsg::WNDENUMPROC);
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-management"
))]
pub use winmsg::EnumChildWindows;
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-management"
))]
pub type EnumChildProc = opt_inner_type!(winmsg::WNDENUMPROC);
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-management"
))]
pub use winmsg::FindWindowW as FindWindow;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::AppendMenuW as AppendMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::InsertMenuW as InsertMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::ModifyMenuW as ModifyMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::RemoveMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::DeleteMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::DestroyMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::CreateMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::CreatePopupMenu;
#[cfg(all(
feature = "windows-subsystem-menu",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetMenu;
#[cfg(feature = "windows-subsystem-paint")]
pub use winmsg::DrawMenuBar;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::GetSystemMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::CheckMenuItem;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::EnableMenuItem;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::HiliteMenuItem;
#[cfg(all(
feature = "windows-subsystem-menu",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetMenuItemID;
#[cfg(all(
feature = "windows-subsystem-menu",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetSubMenu;
#[cfg(all(
feature = "windows-subsystem-menu",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetMenuState;
#[cfg(all(
feature = "windows-subsystem-menu",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetMenuStringW as GetMenuString;
#[cfg(all(
feature = "windows-subsystem-menu",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetMenuItemCount;
#[cfg(all(
feature = "windows-subsystem-menu",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetMenuCheckMarkDimensions;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::SetMenuItemBitmaps;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::TrackPopupMenu;
#[cfg(feature = "windows-subsystem-menu")]
pub use winmsg::SetMenu;
#[cfg(all(
feature = "windows-subsystem-menu",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::IsMenu;
#[cfg(all(
feature = "windows-subsystem-scroll",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetScrollPos;
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::SetScrollPos;
#[cfg(all(
feature = "windows-subsystem-scroll",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetScrollRange;
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::SetScrollRange;
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::ShowScrollBar;
#[cfg(feature = "windows-subsystem-scroll")]
pub use winmsg::ScrollWindow;
#[cfg(feature = "windows-subsystem-scroll")]
pub use ctrls::EnableScrollBar;
#[cfg(all(
feature = "windows-subsystem-scroll",
feature = "graphics-subsystem-basic"
))]
pub use winmsg::ScrollDC;
#[cfg(feature = "windows-subsystem-scroll")]
pub use winmsg::ScrollWindowEx;
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::CreateCaret;
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::DestroyCaret;
#[cfg(all(
feature = "windows-subsystem-caret",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetCaretBlinkTime;
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::SetCaretBlinkTime;
#[cfg(all(
feature = "windows-subsystem-caret",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetCaretPos;
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::SetCaretPos;
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::HideCaret;
#[cfg(feature = "windows-subsystem-caret")]
pub use winmsg::ShowCaret;
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::CreateCursor;
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::DestroyCursor;
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::LoadCursorW as LoadCursor;
#[cfg(any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
))]
pub use winmsg::GetCursorPos;
#[cfg(feature = "windows-subsystem-cursormanagement")]
pub use winmsg::SetCursorPos;
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::ShowCursor;
#[cfg(all(
feature = "windows-subsystem-cursor",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetCursor;
#[cfg(feature = "windows-subsystem-cursor")]
pub use winmsg::SetCursor;
#[cfg(feature = "windows-subsystem-cursormanagement")]
pub use winmsg::ClipCursor;
#[cfg(all(
feature = "windows-subsystem-cursormanagement",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetClipCursor;
removed_item!(
pub use winmsg::CopyCursor;
);
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::SetPropW as SetProp;
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::GetPropW as GetProp;
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::RemovePropW as RemoveProp;
#[cfg(feature = "windows-subsystem-prop")]
pub use winmsg::EnumPropsW as EnumProps;
#[cfg(feature = "windows-subsystem-prop")]
pub type EnumPropsProc = opt_inner_type!(winmsg::PROPENUMPROCW);
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardViewer;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::SetClipboardViewer;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::ChangeClipboardChain;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::OpenClipboard;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetOpenClipboardWindow;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::CloseClipboard;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::EmptyClipboard;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardOwner;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::CountClipboardFormats;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::EnumClipboardFormats;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetPriorityClipboardFormat;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::IsClipboardFormatAvailable;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::RegisterClipboardFormatW as RegisterClipboardFormat;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardFormatNameW as GetClipboardFormatName;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::GetClipboardData;
#[cfg(feature = "windows-subsystem-clipboard")]
pub use sysdx::SetClipboardData;
#[cfg(feature = "windows-subsystem-hook")]
pub type CallWndProc = opt_inner_type!(winmsg::HOOKPROC);
#[cfg(feature = "windows-subsystem-hook")]
pub type GetMsgProc = opt_inner_type!(winmsg::HOOKPROC);
#[cfg(feature = "windows-subsystem-hook")]
pub type MessageProc = opt_inner_type!(winmsg::HOOKPROC);
#[cfg(feature = "windows-subsystem-hook")]
pub type SysMsgProc = opt_inner_type!(winmsg::HOOKPROC);
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::AddAtomW as AddAtom;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalAddAtomW as GlobalAddAtom;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::DeleteAtom;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalDeleteAtom;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::FindAtomW as FindAtom;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalFindAtomW as GlobalFindAtom;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GetAtomNameW as GetAtomName;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::GlobalGetAtomNameW as GlobalGetAtomName;
#[cfg(feature = "windows-subsystem-atom")]
pub use sysdx::InitAtomTable;
#[cfg(feature = "windows-subsystem-control-button")]
pub use ctrls::CheckDlgButton;
#[cfg(feature = "windows-subsystem-control-button")]
pub use ctrls::CheckRadioButton;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::CreateDialogW as CreateDialog;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::CreateDialogIndirectW as CreateDialogIndirect;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::CreateDialogParamW as CreateDialogParam;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::CreateDialogIndirectParamW as CreateDialogIndirectParam;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::DialogBoxW as DialogBox;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg_polyfill::DialogBoxIndirectW as DialogBoxIndirect;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::DialogBoxIndirectParamW as DialogBoxIndirectParam;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::DialogBoxParamW as DialogBoxParam;
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirListW as DlgDirList;
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirListComboBoxW as DlgDirListComboBox;
removed_item!(
pub use ctrls::DlgDirSelectW as DlgDirSelect;
);
removed_item!(
pub use ctrls::DlgDirSelectComboBoxW as DlgDirSelectComboBox;
);
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirSelectComboBoxExW as DlgDirSelectComboBoxEx;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::EndDialog;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetDialogBaseUnits;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetDlgCtrlID;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetDlgItem;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetDlgItemInt;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::SetDlgItemInt;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use winmsg::GetDlgItemTextW as GetDlgItemText;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub use winmsg::SetDlgItemTextW as SetDlgItemText;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetNextDlgGroupItem;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::GetNextDlgTabItem;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-message"
))]
pub use winmsg::IsDialogMessageW as IsDialogMessage;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
any(
feature = "windows-subsystem-reflect",
feature = "windows-subsystem-export"
)
))]
pub use ctrls::IsDlgButtonChecked;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-reflect"
))]
pub use winmsg::MapDialogRect;
#[cfg(all(
feature = "windows-subsystem-dialogbox",
feature = "windows-subsystem-message"
))]
pub use winmsg::SendDlgItemMessageW as SendDlgItemMessage;
#[cfg(feature = "windows-subsystem-dialogbox-dirlist")]
pub use ctrls::DlgDirSelectExW as DlgDirSelectEx;
#[cfg(feature = "windows-subsystem-dialogbox")]
pub type DialogProc = opt_inner_type!(winmsg::DLGPROC);
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::BeginPaint;
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::EndPaint;
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::PAINTSTRUCT;
#[cfg(feature = "windows-subsystem-updateregion")]
pub use gdi::ExcludeUpdateRgn;
#[cfg(all(
feature = "windows-subsystem-updateregion",
feature = "windows-subsystem-reflect"
))]
pub use gdi::GetUpdateRect;
#[cfg(all(
feature = "windows-subsystem-updateregion",
feature = "windows-subsystem-reflect"
))]
pub use gdi::GetUpdateRgn;
#[cfg(any(
feature = "windows-subsystem-paint",
feature = "graphics-subsystem-basic"
))]
pub use gdi::InvertRect;
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::UpdateWindow;
#[cfg(feature = "windows-subsystem-updateregion")]
pub use gdi::ValidateRgn;
#[cfg(any(
feature = "windows-subsystem-updateregion",
feature = "windows-subsystem-paint"
))]
pub use gdi::InvalidateRgn;
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::RedrawWindow;
#[cfg(feature = "windows-subsystem-paint")]
pub use gdi::LockWindowUpdate;
#[cfg(all(
feature = "graphics-subsystem-basic",
any(
feature = "windows-subsystem-reflect",
feature = "graphics-subsystem-reflect"
)
))]
pub use gdi::GetMapMode;
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetMapMode;
#[cfg(all(
feature = "graphics-subsystem-basic",
any(
feature = "windows-subsystem-reflect",
feature = "graphics-subsystem-reflect"
)
))]
pub use gdi::GetPolyFillMode;
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetPolyFillMode;
#[cfg(all(
feature = "graphics-subsystem-basic",
any(
feature = "windows-subsystem-reflect",
feature = "graphics-subsystem-reflect"
)
))]
pub use gdi::GetROP2;
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetROP2;
#[cfg(feature = "graphics-subsystem-basic")]
pub mod binary_raster_ops;
#[cfg(all(
feature = "graphics-subsystem-basic",
any(
feature = "windows-subsystem-reflect",
feature = "graphics-subsystem-reflect"
)
))]
pub use gdi::GetBkColor;
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetBkColor;
#[cfg(all(
feature = "graphics-subsystem-basic",
any(
feature = "windows-subsystem-reflect",
feature = "graphics-subsystem-reflect"
)
))]
pub use gdi::GetBkMode;
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetBkMode;
#[cfg(any(
feature = "graphics-subsystem-reflect",
feature = "graphics-subsystem-export"
))]
pub use gdi::GetBoundsRect;
#[cfg(feature = "graphics-subsystem-basic")]
pub use gdi::SetBoundsRect;
removed_item!(
pub use gdi::GetCurrentPosition;
);
#[cfg(all(
feature = "graphics-subsystem-basic",
any(
feature = "windows-subsystem-reflect",
feature = "graphics-subsystem-reflect"
)
))]
pub use gdi::GetCurrentPositionEx;
#[cfg(any(
feature = "windows-subsystem-updateregion",
feature = "windows-subsystem-paint"
))]
pub use gdi::InvalidateRect;
#[cfg(feature = "windows-subsystem-updateregion")]
pub use gdi::ValidateRect;
#[cfg(any(
feature = "windows-subsystem-basic",
feature = "windows-subsystem-dialogbox"
))]
mod winmsg_polyfill {
#![allow(non_snake_case, missing_docs)]
#![allow(clippy::missing_safety_doc)]
use super::winmsg;
use windows_sys::Win32::Foundation as winsys_foundation;
#[cfg(feature = "windows-subsystem-basic")]
#[inline]
pub unsafe extern "system" fn CreateWindowW(
lpclassname: windows_sys::core::PCWSTR,
lpwindowname: windows_sys::core::PCWSTR,
dwstyle: winmsg::WINDOW_STYLE,
x: i32,
y: i32,
nwidth: i32,
nheight: i32,
hwndparent: winsys_foundation::HWND,
hmenu: winmsg::HMENU,
hinstance: winsys_foundation::HINSTANCE,
lpparam: *const core::ffi::c_void,
) -> winsys_foundation::HWND {
unsafe {
winmsg::CreateWindowExW(
0,
lpclassname,
lpwindowname,
dwstyle,
x,
y,
nwidth,
nheight,
hwndparent,
hmenu,
hinstance,
lpparam,
)
}
}
#[cfg(feature = "windows-subsystem-dialogbox")]
pub unsafe extern "system" fn CreateDialogW(
hinstance: winsys_foundation::HINSTANCE,
lptemplatename: windows_sys::core::PCWSTR,
hwndparent: winsys_foundation::HWND,
lpdialogfunc: winmsg::DLGPROC,
) -> winsys_foundation::HWND {
unsafe {
winmsg::CreateDialogParamW(hinstance, lptemplatename, hwndparent, lpdialogfunc, 0)
}
}
#[cfg(feature = "windows-subsystem-dialogbox")]
pub unsafe extern "system" fn CreateDialogIndirectW(
hinstance: winsys_foundation::HINSTANCE,
lptemplate: *const winmsg::DLGTEMPLATE,
hwndparent: winsys_foundation::HWND,
lpdialogfunc: winmsg::DLGPROC,
) -> winsys_foundation::HWND {
unsafe {
winmsg::CreateDialogIndirectParamW(hinstance, lptemplate, hwndparent, lpdialogfunc, 0)
}
}
#[cfg(feature = "windows-subsystem-dialogbox")]
pub unsafe extern "system" fn DialogBoxW(
hinstance: winsys_foundation::HINSTANCE,
lptemplatename: windows_sys::core::PCWSTR,
hwndparent: winsys_foundation::HWND,
lpdialogfunc: winmsg::DLGPROC,
) -> isize {
unsafe { winmsg::DialogBoxParamW(hinstance, lptemplatename, hwndparent, lpdialogfunc, 0) }
}
#[cfg(feature = "windows-subsystem-dialogbox")]
pub unsafe extern "system" fn DialogBoxIndirectW(
hinstance: winsys_foundation::HINSTANCE,
hdialogtemplate: *const winmsg::DLGTEMPLATE,
hwndparent: winsys_foundation::HWND,
lpdialogfunc: winmsg::DLGPROC,
) -> isize {
unsafe {
winmsg::DialogBoxIndirectParamW(hinstance, hdialogtemplate, hwndparent, lpdialogfunc, 0)
}
}
}