SilverScreen Solid Modeler

engine_set_frame_window

engine_set_frame_window

Previous topic Next topic  

engine_set_frame_window

Previous topic Next topic JavaScript is required for the print function  

 

SilverEngineEllipse

 

BOOLEAN engine_set_frame_window( HWND user_frame_window )

 

HWND user_frame_window;  // A handle to a Win32 window

 

 

 




Synopsis

#include "silvere.h"

 

The engine_set_frame_window function establishes the main application window for SilverEngine.

 

Parameters

user_frame_window is a handle to a Win32 window that is the main application window.

 

 

Return Value

engine_set_frame_window returns TRUE if successful and FALSE otherwise.

 

 

Remarks

The interactive routines in SilverEngine must have a handle to the main window for proper message routing, and to use as a parent window for any dialogs.

 

 

See Also

engine_initialize

 

 

Example

For a complete example see the SilverEngine, EngineShell sample. The following code is a typical use of engine_set_frame_window from within an MFC application's InitInstance routine:

 

C / C++ Code

 

 #include "silvere.h

 

 . . .

 

 BOOL CMyApp::InitInstance()

    {

 

    . . .

 

    return engine_set_frame_window( m_pMainWnd->GetSafeHwnd() );

    }