13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IGetCurrentTimeGetCurrentTimeSyntax DWORD GetCurrentTime( )function GetCurrentTime: Longint;ParametersReturn valueCommentsThis function retrieves the current Windows time. Windows time is thenumber of milliseconds that have elapsed since the system was booted.None.The return value specifies the current time (in milliseconds).The GetCurrentTime and GetMessageTime functions return differenttimes. GetMessageTime returns the Windows time when the givenmessage was created, not the current Windows time.The system timer eventually overflows and resets to zero.IGetCursorPosSyntaxvoid GetCursorPos(lpPoint)procedure GetCursorPos(var Point: TPoint);This function retrieves the cursor's current position (in screencoordinates), that copies them to the POINT structure pointed to by theIpPoint parameter.Parameters IpPoint LPPOINT Points to the POINT structure that is to receive thescreen coordinates of the cursor.Return valueCommentsNoneThe cursor position is always given in screen coordinates and is notaffected by the mapping mode of the window that contains the cursor.GetDCSyntaxHDC GetDC(h Wnd)function GetDC(Wnd: HWnd): HDC;This function retrieves a handle to a display context for the client area ofthe given window. The display context can be used in subsequent GDIfunctions to draw in the client area.Chapter 4, Functions directory 303

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!