indexing description: "Set of Win32 API that can be statically accessed." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_API feature -- Menus frozen set_menu (hwnd, hmenu: POINTER): INTEGER is -- SDK SetMenu external "C inline use " alias "SetMenu ((HWND) $hwnd, (HMENU) $hmenu)" end frozen track_popup_menu (hmenu: POINTER; flags, x, y, reserved: INTEGER; hwnd, rect: POINTER) is -- SDK TrackPopupMenu external "C inline use " alias "TrackPopupMenu((HMENU) $hmenu, (UINT) $flags, (int) $x, (int) $y, (int) $reserved, (HWND) $hwnd, (RECT *) $rect)" end feature -- Messages frozen post_message_result (hwnd: POINTER; msg: INTEGER; wparam, lparam: POINTER): BOOLEAN is -- SDK PostMessage (with the result) external "C inline use " alias "PostMessage ((HWND) $hwnd, (UINT) $msg, (WPARAM) $wparam, (LPARAM) $lparam)" end frozen post_message (hwnd: POINTER; msg: INTEGER; wparam, lparam: POINTER) is -- SDK PostMessage (without the result) external "C inline use " alias "PostMessage ((HWND) $hwnd, (UINT) $msg, (WPARAM) $wparam, (LPARAM) $lparam)" end frozen register_window_message (a_message_name: POINTER): INTEGER is -- Register a custom window message named `message_name'. -- `Result' is id of new message. external "C inline use " alias "RegisterWindowMessage ((LPCTSTR) $a_message_name)" end feature -- Windows frozen set_foreground_window (hwnd: POINTER): BOOLEAN is -- The SetForegroundWindow function puts the thread that created the specified -- window into the foreground and activates the window. Keyboard input is -- directed to the window, and various visual cues are changed for the user. -- The system assigns a slightly higher priority to the thread that created -- the foreground window than it does to other threads. external "C inline use " alias "SetForegroundWindow ((HWND)$hwnd)" end feature -- Shell frozen shell_notify_icon (a_message: INTEGER; a_notify_icon_data_ptr: POINTER): INTEGER is -- Sends a message to the taskbar's status area. external "C inline use " alias "Shell_NotifyIcon((DWORD) $a_message, (PNOTIFYICONDATA) $a_notify_icon_data_ptr)" end feature -- Character codes frozen vk_key_scan (a_char: CHARACTER_32): INTEGER_32 is -- Given a character `a_char' gives us the key that triggers its generation. external "C inline use " alias "return (EIF_INTEGER_32) VkKeyScan ((TCHAR) $a_char);" end indexing copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end