Structure for windowless form interaction information. More...
#include <fpdf_form_w.h>
Public Attributes | |
FS_DWORD | lStructSize |
The size of the data structure. It must be set to sizeof(FSPDF_FORMINTERACTION_WINDOWLESS). | |
FS_LPVOID | clientData |
The user-supplied data. | |
FS_RESULT(* | OutputSelectedRect )(FS_LPVOID clientData, FS_INT32 pageIndex, FSCRT_RECTF *pdfRect) |
When user is taking the mouse to select texts on a form field, this callback function will keep returning the selected areas to the implementation. More... | |
FS_RESULT(* | SetCursor )(FS_LPVOID clientData, FS_INT32 nCursorType) |
Set the Cursor shape. More... | |
FS_RESULT(* | SetTimer )(FS_LPVOID clientData, FS_INT32 uElapse, FSCRT_CALLBACK_TIMER lpTimerFunc, FS_INT32 *timeID) |
This method installs a system timer. A time-out value is specified, and every time a time-out occurs, the system passes a message to the TimerProc callback function. More... | |
FS_RESULT(* | KillTimer )(FS_LPVOID clientData, FS_INT32 timerID) |
This method kills the timer event identified by nIDEvent, set by an earlier call to SetTimer. More... | |
FS_RESULT(* | GotFocusOnControl )(FS_LPVOID clientData, FSPDF_FORMCONTROL control, const FSCRT_BSTR *filedValue) |
This method will be called when the focus is set to a form control. More... | |
FS_RESULT(* | LostFocusOnControl )(FS_LPVOID clientData, FSPDF_FORMCONTROL control, const FSCRT_BSTR *filedValue) |
This method will be called when the focus is lost from a form control. More... | |
Structure for windowless form interaction information.
FS_RESULT(* FSPDF_FORMINTERACTION_WINDOWLESS::GotFocusOnControl) (FS_LPVOID clientData, FSPDF_FORMCONTROL control, const FSCRT_BSTR *filedValue) |
This method will be called when the focus is set to a form control.
[in] | clientData | Pointer to user-defined data. |
[in] | control | Handler to a FSPDF_FORMCONTROL object. |
[in] | filedValue | The value of form field associated with the control. |
FS_RESULT(* FSPDF_FORMINTERACTION_WINDOWLESS::KillTimer) (FS_LPVOID clientData, FS_INT32 timerID) |
This method kills the timer event identified by nIDEvent, set by an earlier call to SetTimer.
[in] | clientData | Pointer to user-defined data. |
[in] | timerID | The timer ID returned by FSPDF_FORMINTERACTION_WINDOWLESS::SetTimer function. |
FS_RESULT(* FSPDF_FORMINTERACTION_WINDOWLESS::LostFocusOnControl) (FS_LPVOID clientData, FSPDF_FORMCONTROL control, const FSCRT_BSTR *filedValue) |
This method will be called when the focus is lost from a form control.
[in] | clientData | Pointer to user-defined data. |
[in] | control | Handler to a FSPDF_FORMCONTROL object. |
[in] | filedValue | The value of form field associated with the control. |
FS_RESULT(* FSPDF_FORMINTERACTION_WINDOWLESS::OutputSelectedRect) (FS_LPVOID clientData, FS_INT32 pageIndex, FSCRT_RECTF *pdfRect) |
When user is taking the mouse to select texts on a form field, this callback function will keep returning the selected areas to the implementation.
This CALLBACK function is useful for implementing special text selection effect. Implementation should first record the returned rectangles, then draw them one by one in the painting period, and finally remove all the recorded rectangles when finish painting.
[in] | clientData | Pointer to user-defined data. |
[in] | pageIndex | The page index which starts from 0. |
[in] | pdfRect | Pointer to a FSCRT_RECTF structure, which specifies the page area in PDF page coordinate. |
FS_RESULT(* FSPDF_FORMINTERACTION_WINDOWLESS::SetCursor) (FS_LPVOID clientData, FS_INT32 nCursorType) |
Set the Cursor shape.
[in] | clientData | Pointer to user-defined data. |
[in] | nCursorType | Cursor type. Please refer to macro definitions FSCRT_CURSOR_XXX and this should be one of these macros. |
FS_RESULT(* FSPDF_FORMINTERACTION_WINDOWLESS::SetTimer) (FS_LPVOID clientData, FS_INT32 uElapse, FSCRT_CALLBACK_TIMER lpTimerFunc, FS_INT32 *timeID) |
This method installs a system timer. A time-out value is specified, and every time a time-out occurs, the system passes a message to the TimerProc callback function.
[in] | clientData | Pointer to user-defined data. |
[in] | uElapse | Specifies the time-out value, in milliseconds. |
[in] | lpTimerFunc | A pointer to the callback function-TimerCallback. |
[out] | timeID | The timer identifier of the new timer if the function is successful. An application passes this value to the KillTimer method to kill the timer. Nonzero if it is successful; otherwise, it is zero. |