MaxSDK::Util Namespace Reference

This reference page is linked to from the following overview topics: Incremental Improvements, Facilitating Translation and Localization.


Classes

class   AutoPtr
  Old AutoPtr class, maintained to support backwards compatibility. More...
class   Noncopyable
  Noncopyable is a handy utility mix-in base class that makes any class derived from it non-copyable. More...
class   Path
  Path type - adds path-operation richness over symbol strings. More...

Functions

UtilExport WORD  GetLanguageID ()
  Returns the identifier of the language used by 3ds Max.
UtilExport const MCHAR *  GetLanguageTLA ()
  Returns the "tree letter acronym" (TLA) of the language used by 3ds Max.
UtilExport bool  CopyToClipBoard (const MCHAR *text, HWND hwnd)
  copies a string to the system wide clipboard
UtilExport bool  ScanDirectoryTree (const MCHAR *treeroot, const MCHAR *filename, MSTR &targetpath)

Function Documentation

UtilExport WORD MaxSDK::Util::GetLanguageID ( )

Returns the identifier of the language used by 3ds Max.

This method complements MaxSDK::Util::GetLanguageTLA.

The language identifier is made up of a primary language identifier and a sublanguage identifier, both of which are from a set pre-defined identifiers that are part of the Windows Platform SDK.

Use WORD PRIMARYLANGID(WORD lgid) to retrieve the primary language identifier (such as LANG_ENGLISH, LANG_FRENCH, etc.), from the language identifier returned by this method. Use WORD SUBLANGID(WORD lgid) to retrieve the sublanguage identifier (such as SUBLANG_DEFAULT, SUBLANG_CHINESE_SIMPLIFIED, etc.), from the language identifier returned by this method.

For more information on language identifiers see National Language Support (on MSDN)

UtilExport const MCHAR* MaxSDK::Util::GetLanguageTLA ( )

Returns the "tree letter acronym" (TLA) of the language used by 3ds Max.

This method complements MaxSDK::Util::GetLanguageID. For more information on TAL see List of Windows XP's Three Letter Acronyms for Languages

Returns:
The TLA of the language used by 3ds Max.
UtilExport bool MaxSDK::Util::CopyToClipBoard ( const MCHAR *  text,
HWND  hwnd 
)

copies a string to the system wide clipboard

Parameters:
text - The string to copy
hwnd - The Window that owns the original information to be copied
UtilExport bool MaxSDK::Util::ScanDirectoryTree ( const MCHAR *  treeroot,
const MCHAR *  filename,
MSTR targetpath 
)