Class ViewFile
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;
}
Methods:
Prototype:
void View(HWND hWnd)
Remarks:
Implemented by the Plug-In.
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.