Public Member Functions

ViewFile Class Reference

This reference page is linked to from the following overview topics: Miscellaneous Samples and Plug-ins, Plug-in Base Classes.


Search for all occurrences

Detailed Description

class ViewFile

Description:
This class allows a developer to replace the file viewer used by 3ds Max (This is the "View File" option in 3ds Max's File menu). By creating a DLL from this class, and replacing the standard 3ds Max ViewFile. DLL the system will always use the developer defined version. Note: To execute this plug-in, put the DLL in the same directory as the 3DSMAX.EXE executable.

The following two functions are called by the system to create and delete the instance of this class that handles the file viewing.

void *ViewFileCreate();

This function is implemented by the plug-in to create a new instance of this class. For example:
void *ViewFileCreate()
{
    return new ViewFile;
}
void ViewFileDestroy(ViewFile *v);
This function is implemented by the plug-in to delete the instance of this class created above. For example:
void ViewFileDestroy(ViewFile *v)
{
    if (v)
        delete v;
}

#include <viewfile.h>

Inheritance diagram for ViewFile:
Inheritance graph
[legend]

List of all members.

Public Member Functions

VWFEXPORT  ViewFile ()
VWFEXPORT  ~ViewFile ()
VWFEXPORT void  View (HWND hWnd)

Constructor & Destructor Documentation

VWFEXPORT ViewFile ( )
VWFEXPORT ~ViewFile ( )

Member Function Documentation

VWFEXPORT void View ( HWND  hWnd )
Remarks:
This method is called by the system to bring up the file viewer.
Parameters:
HWND hWnd

The parent window handle.

See also:
/MAXSDK/SAMPLES/VIEWFILE/VIEWFILE.CPP for an example of the standard 3ds Max file viewer.

ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile
ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile ViewFile