Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 7 Using Open Forms : Open Forms Functions : openform_initialise()

openform_initialise()
Load the NPSAL support libraries and initialize access to the other functions in this module.
Synopsis
C/C++
long int openform_initialise (HWND tools_wnd_hdl, HWND parent_wnd_hdl)
VB
Function openform_initialise (tools_wnd_hdl As Long, parent_wnd_hdl As Long) As Long
where:
tools_wnd_hdl is the tools window handle that identifies the iProcess login session to which the work item belongs, as passed to your Open Form application by the calling script - see Creating the Script to Call the Open Forms Application.
parent_wnd_hdl is the window handle of your Open Form application window. This will be the parent window of any error message dialogs displayed by the other openform_xxx functions.
If you do not want error messages displayed you should pass parent_wnd_hdl as NULL or 0.
Description
You should call this function when your Open Form application first starts up - normally when your main window procedure function receives a WM_CREATE message.
You cannot call any other openform_xxx functions until you have called this function.
Returns
One of the following numeric values.
0
(long int) openform_id. The identifier of the Open Forms SDK Interface Function module, which must be used when calling the other openform_xxx functions.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved