Форум: "WinAPI";
Текущий архив: 2002.05.06;
Скачать: [xml.tar.bz2];
ВнизAPI функции для работы с мышью Найти похожие ветки
← →
Rider (2002-02-28 19:39) [0]Я искал через яндекс. Единственная функция, которую я нашел и которая описана на этом сайте - это функция, имитирующая нажатие клавишь mouse_event(). Какие еще API функции для мыши существуют, и где я могу найти их описание/примеры ? Очень надо - курсовой проект делаю!!!
← →
Serg Bormant (2002-02-28 21:11) [1]Platform SDK: Windows User Interface
Cursor Functions
The following functions are used with cursors.
Function Description
ClipCursor Confines the cursor to a rectangular area on the screen.
CopyCursor Copies the specified cursor.
CreateCursor Creates a cursor having the specified size, bit patterns, and hot spot.
DestroyCursor Destroys a cursor.
GetClipCursor Retrieves the screen coordinates of the rectangular area to which the cursor is confined.
GetCursor Retrieves a handle to the current cursor.
GetCursorInfo Retrieves information about the global cursor.
GetCursorPos Retrieves the cursor"s position.
LoadCursor Loads a cursor resource from an executable file.
LoadCursorFromFile Creates a cursor based on data contained in a file.
SetCursor Sets the cursor shape.
SetCursorPos Moves the cursor to the specified screen coordinates.
SetSystemCursor Enables an application to customize the system cursors.
ShowCursor Displays or hides the cursor.
Cursor Structures
The following structure is used with cursors.
CURSORINFO
Cursor Messages
The following message is used with cursors.
WM_SETCURSOR
--
wbr, sb
← →
Serg Bormant (2002-02-28 21:17) [2]В догонку...
Platform SDK: Windows User Interface
About Mouse Input
The mouse is an important, but optional, user-input device for Win32®-based applications. A well-written Win32-based application should include a mouse interface, but it should not depend solely on the mouse for acquiring user input. The application should provide full keyboard support as well.
A Win32-based application receives mouse input in the form of messages that are sent or posted to its windows.
Mouse Input Functions
The following functions are used with mouse input.
Function Description
DragDetect Captures the mouse and tracks its movement until the user performs one or more specified actions.
GetCapture Gets a handle to the window that has captured the mouse.
GetDoubleClickTime Gets the double-click time for the mouse.
GetMouseMovePointsEx Gets the previous coordinates of the mouse or pen.
GetLastInputInfo Gets the time of the last input event.
mouse_event Synthesizes mouse motion and button clicks.
ReleaseCapture Releases the mouse capture and restores mouse input processing.
SetCapture Sets the mouse capture to a window.
SetDoubleClickTime Sets the double-click time for the mouse.
SwapMouseButton Reverses the left- and right-mouse buttons.
TrackMouseEvent or _ TrackMouseEvent Posts messages when a mouse leaves a window or hovers over a window.
Mouse Input Structures
The following structures are used with mouse input.
LASTINPUTINFO
MOUSEMOVEPOINT
TRACKMOUSEEVENT
Mouse Input Messages
The following messages are used with mouse input.
WM_APPCOMMAND
WM_CAPTURECHANGED
WM_LBUTTONDBLCLK
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_MBUTTONDBLCLK
WM_MBUTTONDOWN
WM_MBUTTONUP
WM_MOUSEACTIVATE
WM_MOUSEHOVER
WM_MOUSELEAVE
WM_MOUSEMOVE
WM_MOUSEWHEEL
WM_NCHITTEST
WM_NCLBUTTONDBLCLK
WM_NCLBUTTONDOWN
WM_NCLBUTTONUP
WM_NCMBUTTONDBLCLK
WM_NCMBUTTONDOWN
WM_NCMBUTTONUP
WM_NCMOUSEHOVER
WM_NCMOUSELEAVE
WM_NCMOUSEMOVE
WM_NCRBUTTONDBLCLK
WM_NCRBUTTONDOWN
WM_NCRBUTTONUP
WM_NCXBUTTONDBLCLK
WM_NCXBUTTONDOWN
WM_NCXBUTTONUP
WM_RBUTTONDBLCLK
WM_RBUTTONDOWN
WM_RBUTTONUP
WM_XBUTTONDBLCLK
WM_XBUTTONDOWN
WM_XBUTTONUP
Mouse Input Macros
The following macros are used with mouse input.
GET_APPCOMMAND_LPARAM
GET_DEVICE_LPARAM
GET_FLAGS_LPARAM
GET_KEYSTATE_LPARAM
GET_KEYSTATE_WPARAM
GET_MOUSEORKEY_LPARAM
GET_NCHITTEST_WPARAM
GET_XBUTTON_WPARAM
GET_WHEEL_DELTA_WPARAM
← →
Serg Bormant (2002-02-28 21:20) [3]Да, чуть не забыл...
http://msdn.microsoft.com/library/
--
wbr, sb
← →
Rider (2002-03-01 17:46) [4]Спасиб большое ! Теперь попрограммирую !!! :)
Страницы: 1 вся ветка
Форум: "WinAPI";
Текущий архив: 2002.05.06;
Скачать: [xml.tar.bz2];
Память: 0.46 MB
Время: 0.005 c