![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как узнать координаты курсора мыши в KOL ??? [Delphi, Windows]
Ok © (2004-09-05 20:03:00)Как узнать координаты курсора мыши в KOL ???
Defunct (2004-09-07 21:57:00) [1]> Как узнать координаты курсора мыши
Mouse.CursorPos
OK (2004-09-07 21:31:00) [2]SPeller ©
Н-да, тяжелый случай.
И чем???
SPeller (2004-09-07 04:08:00) [3]
> Statement expected, but expression of type 'LongBool' found
Н-да, тяжелый случай.
OK (2004-09-06 19:41:00) [4]Функцыя GetCursorPos выдает ошыбку
Statement expected, but expression of type 'LongBool' found
Можна примерчик
ecm (2004-09-05 22:01:00) [5]function Client2Screen( const P: TPoint ): TPoint;
{* Converts the client coordinates of a specified point to screen coordinates. }
function Screen2Client( const P: TPoint ): TPoint;
{* Converts screen coordinates of a specified point to client coordinates. }
ecm (2004-09-05 20:51:00) [6]GetCursorPos
Только KOL здесь не причем - это функция API :)
The GetCursorPos function retrieves the cursor's position, in screen coordinates.
Syntax
BOOL GetCursorPos( LPPOINT lpPoint
);
Parameters
lpPoint
[out] Pointer to a POINT structure that receives the screen coordinates of the cursor.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.