This function is called once at startup when the image windows are created.
Syntax
extern "C" __declspec(dllexport) int Ima_Create(
HWND wnd,
SliceO_Window *window
int width,
int height
)
Parameters
wnd
A handle to the interface's window
window
A pointer to the "Window" structure of the image window receiving the action.
width
The horizontal size of the window (in pixels).
height
The vertical size of the window (in pixels).
Return value
The function returns "0" if an error occurred, "1" otherwise.
Remarks
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
|
...
// ----------------------------------------------------------------------------
//
// Function: Ima_Create
//
// Param: wnd (HWND) Pointer to Window's created window
// window (SliceO_Window *) Pt to the current SliceO_Window
// width (int) current width of the window
// height (int) current height of the window
//
// Return: (int) 0 if error
//
// This is called once at the begening of th program.
//
// ----------------------------------------------------------------------------
extern "C" __declspec(dllexport) int Ima_Create( HWND wnd, SliceO_Window *window, int width, int height )
{
return( 1 ) ;
}
...
|
|
See also