Functions Reference
45
Gx6384Panel
Purpose
Opens a virtual panel used to interactively control the GX6384 board.
Syntax
Gx6384Panel
(
pnHandle, hwndParent, nMode, phwndPanel, pnStatus
)
Parameters
Name
Type
Comments
pnhandle
PSHORT
Handle to a GX6384 board. This number may be zero if the board is to be
initialized by the panel window.
hwndParent
DWORD
Sets the panel parent window handle. A value of 0 sets the desktop as the parent
window.
nMode
SHORT
The mode in which the panel main window is created. 0 for modeless and 1 for
modal window.
phwndPanel
PDWORD
Returned window handle for the panel (for modeless panel only).
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.
Comments
The function is used to create the panel window. The panel window may be open as a modal or a modeless window,
depending on the
nMode
parameters.
If the mode is set to modal dialog (
nMode
=1), the panel will disable the parent window (
hwndParent
) and the
function will return only after the user closed the window. In that case the
pnHandle
may return the handle created
by the user using the panel Initialize dialog. This handle may be used when calling other GX6384 functions.
If a modeless dialog was created (
nMode
=0), the function returns immediately after creating the panel window,
returning the window handle to the panel -
phwndPanel.
It is the responsibility of the calling program to dispatch
window messages to this window, so that the window can respond to messages.
Example
The following example opens the panel in modal mode:
DWORD
dwPanel;
SHORT
nHandle=0, nStatus;
...
Gx6384Panel (&nHandle, 0, 1, &dwPanel, &nStatus);
See Also
Gx6384Initialize
,
GxSWGetErrorString
Содержание GX6384-1
Страница 2: ......
Страница 7: ...GX6384 User s Guide v Index 55 ...
Страница 8: ...vi GX6384 User s Guide ...
Страница 36: ...28 GX6384 User s Guide ...