![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
API функции для работы с мышью [D5, D6, Win95/98, Win2k]
Rider © (2002-02-28 19:39:00)Я искал через яндекс. Единственная функция, которую я нашел и которая описана на этом сайте - это функция, имитирующая нажатие клавишь mouse_event(). Какие еще API функции для мыши существуют, и где я могу найти их описание/примеры ? Очень надо - курсовой проект делаю!!!
Rider (2002-03-01 17:46:00) [1]Спасиб большое ! Теперь попрограммирую !!! :)
Serg Bormant (2002-02-28 21:20:00) [2]Да, чуть не забыл...
http://msdn.microsoft.com/library/
--
wbr, sb
Serg Bormant (2002-02-28 21:17:00) [3]В догонку...
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
DragDetectCaptures the mouse and tracks its movement until the user performs one or more specified actions.
GetCaptureGets a handle to the window that has captured the mouse.
GetDoubleClickTimeGets the double-click time for the mouse.
GetMouseMovePointsExGets the previous coordinates of the mouse or pen.
GetLastInputInfoGets the time of the last input event.
mouse_eventSynthesizes mouse motion and button clicks.
ReleaseCaptureReleases the mouse capture and restores mouse input processing.
SetCaptureSets the mouse capture to a window.
SetDoubleClickTimeSets the double-click time for the mouse.
SwapMouseButtonReverses the left- and right-mouse buttons.
TrackMouseEventor _ TrackMouseEventPosts 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:11:00) [4]Platform SDK: Windows User Interface
Cursor Functions
The following functions are used with cursors.
Function Description
ClipCursorConfines the cursor to a rectangular area on the screen.
CopyCursorCopies the specified cursor.
CreateCursorCreates a cursor having the specified size, bit patterns, and hot spot.
DestroyCursorDestroys a cursor.
GetClipCursorRetrieves the screen coordinates of the rectangular area to which the cursor is confined.
GetCursorRetrieves a handle to the current cursor.
GetCursorInfoRetrieves information about the global cursor.
GetCursorPosRetrieves the cursor"s position.
LoadCursorLoads a cursor resource from an executable file.
LoadCursorFromFileCreates a cursor based on data contained in a file.
SetCursorSets the cursor shape.
SetCursorPosMoves the cursor to the specified screen coordinates.
SetSystemCursorEnables an application to customize the system cursors.
ShowCursorDisplays 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