Example #1
0
bool WEXPORT WSystemHelp::sysHelpId( gui_hlp_id help_id )
/*******************************************************/
{
    if( !_helpInstance ) {
        return( false );
    }
#ifdef __NT__
    if( _chmfile != NULL && *_chmfile != '\0' ) {
        return( GUIShowHtmlHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_CONTEXT, (char *)_chmfile, (char *)(pointer_int)help_id ) );
    }
#endif
    return( GUIShowHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_CONTEXT, (char *)_library, (char *)(pointer_int)help_id ) );
}
Example #2
0
bool WEXPORT WSystemHelp::sysHelpContent( void )
/**********************************************/
{
    if( !_helpInstance ) {
        return( false );
    }
#ifdef __NT__
    if( _chmfile != NULL && *_chmfile != '\0' ) {
        if( GUIShowHtmlHelp( _helpInstance, _helpWindow->handle(),
                             GUI_HELP_CONTENTS, (char *)_chmfile, NULL ) ) {
            return( true );
        }
    }
#endif
    return( GUIShowHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_CONTENTS, (char *)_library, NULL ) );
}
Example #3
0
bool WEXPORT WSystemHelp::sysHelpTopic( const char *topic )
/*********************************************************/
{
    if( !_helpInstance ) {
        return( false );
    }
#ifdef __NT__
    if( _chmfile != NULL && *_chmfile != '\0' ) {
        if( GUIShowHtmlHelp( _helpInstance, _helpWindow->handle(),
                             GUI_HELP_KEY, (char *)_chmfile, (char *)topic ) ) {
            return( true );
        }
    }
#endif
    return( GUIShowHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_KEY, (char *)_library, (char *)topic ) );
}
Example #4
0
bool WEXPORT WSystemHelp::sysHelpSearch( const char *topic )
/**********************************************************/
{
    if( !_helpInstance ) {
        return( FALSE );
    }
#ifdef __NT__
    if( _chmfile != NULL && *_chmfile != '\0' ) {
        if( GUIShowHtmlHelp( _helpInstance, _helpWindow->handle(),
                             GUI_HELP_SEARCH, (char *)_chmfile, (char *)topic ) ) {
            return( TRUE );
        }
    }
#endif
    return( GUIShowHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_SEARCH, (char *)_library, (char *)topic ) );
}
Example #5
0
bool WEXPORT WSystemHelp::sysHelpOnHelp( void )
/*********************************************/
{
    if( !_helpInstance ) {
        return( FALSE );
    }
#ifdef __NT__
#if 0
    if( _chmfile != NULL && *_chmfile != '\0' ) {
        if( GUIShowHtmlHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_ON_HELP, (char *)_chmfile, NULL ) ) {
            return( TRUE );
        }
    }
#endif
#endif
    return( GUIShowHelp( _helpInstance, _helpWindow->handle(),
                         GUI_HELP_ON_HELP, (char *)_library, NULL ) );
}
Example #6
0
void WPProcHelp( gui_help_actions action )
/****************************************/
{
    char        help_name[_MAX_PATH2];
#if !defined( __WINDOWS__ ) && !defined( __NT__ ) && !defined( __OS2_PM__ )
    char *      filename;
#endif

#ifdef __NT__
    if( GUIShowHtmlHelp( helpHandle, WndGui( WndMain ), action, HTMLHELPNAME, "" ) ) {
        return;
    }
#endif
#if defined( __WINDOWS__ ) || defined( __NT__ ) || defined( __OS2_PM__ )
    strcpy( help_name, HELPNAME );
#else
    filename = FindFile( help_name, "wprof.ihp", HelpPathList );
    if( filename == NULL ) {
        ErrorMsg( LIT( Unable_To_Open_Help ), "wprof.ihp" );
        return;
    }
#endif
    GUIShowHelp( helpHandle, WndGui( WndMain ), action, help_name, "" );
}