13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ISen extJustificctionnext line. The term can be cleared by calling SetTextJustification withnBreakExtra set to zero.Parameters hDC HDC Identifies the device context.Return valuenBreakExtra int Specifies the total extra space (in logical units) to beadded to the line of text. If the current mapping mode is notMM_TEXT, the value identified by the nBreakExtraparameter is transformed and rounded to the nearest pixel.nBreakCount int Specifies the number of break characters in the line.The return value specifies the outcome of the function. It is 1 if thefunction is successful. Otherwise, it is zero.SetTimerSyntaxParametersReturn valueWORD SetTimer(h Wnd, nIDEvent, wElapse, IpTimerFunc)function SetTimer(Wnd: HWnd; IDEvent: Integer; Elapse: Word;TimerFunc: TFarProc): Word;This function creates a system timer event. When a timer event occurs,Windows passes a WM_TIMER message to the application-suppliedfunction specified by the lpTimerFunc parameter. The function can thenprocess the event. A NULL value for lpTimerFunc causes WM_TIMERmessages to be placed in the application queue.h WndnIDEventwElapseHWND Identifies the window to be associated with the timer.If hWnd is NULL, no window is associated with the timer.int Specifies a nonzero timer-event identifier if the h Wndparameter is not NULL.WORD Specifies the elapsed time (in milliseconds) betweentimer events.lpTimerFunc FARPROC Is the procedure-instance address of the functionto be notified when the timer event takes place. IflpTimerFunc is NULL, the WM_TIMER message is placed inthe application queue, and the hwnd member of the MSGstructure contains the h Wnd parameter given in the SetTimerfunction call. See the following "Comments" section fordetails.The return value specifies the integer identifier for the new timer event. Ifthe h Wnd parameter is NULL, an application passes this value to the~""!."("",,;)','·,::,',,,:,;;:,1,'­~,:!Chapter 4, Functions directory 525

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

Saved successfully!

Ooh no, something went wrong!