|
3ds Max C++ API Reference
|
#include "utilexp.h"#include "strbasic.h"#include "BuildWarnings.h"#include <wtypes.h>#include <cmath>#include <cstdlib>Macros | |
| #define | DL_STDEXT stdext |
| #define | DL_NON_RTTI_OBJECT std::__non_rtti_object |
| #define | DL_TYPENAME_OUTSIDE_TEMPLATE typename |
Typedefs | |
| typedef INT_PTR(CALLBACK * | DL_NOTQUITE_WNDPROC) (HWND, UINT, WPARAM, LPARAM) |
Enumerations | |
| enum | { FNV1_32_INIT = 0x811c9dc5 , FNV_32_PRIME = 0x01000193 } |
Functions | |
| template<typename DataPtr > | |
| DataPtr | DLGetWindowLongPtr (HWND hWnd, int n=GWLP_USERDATA, DataPtr=NULL) |
| template<typename DataPtr > | |
| DataPtr | DLGetWindowLongPtrA (HWND hWnd, int n=GWLP_USERDATA) |
| template<typename DataPtr > | |
| DataPtr | DLGetWindowLongPtrW (HWND hWnd, int n=GWLP_USERDATA) |
| template<typename DataPtr > | |
| DataPtr | DLGetWindowLongPtr (HWND hWnd, DataPtr *pPtr, int n=GWLP_USERDATA) |
| template<> | |
| bool | DLGetWindowLongPtr (HWND hWnd, int n, bool) |
| WNDPROC | DLGetWindowProc (HWND hWnd) |
| WNDPROC | DLGetWindowProcA (HWND hWnd) |
| WNDPROC | DLGetWindowProcW (HWND hWnd) |
| HINSTANCE | DLGetWindowInstance (HWND hWnd) |
| template<typename Type > | |
| Type | DLSetWindowLongPtr (HWND hWnd, Type ptr, int n=GWLP_USERDATA) |
| template<> | |
| bool | DLSetWindowLongPtr (HWND hWnd, bool bo, int n) |
| WNDPROC | DLSetWindowLongPtr (HWND hWnd, WNDPROC pfn) |
| WNDPROC | DLSetWindowProc (HWND hWnd, WNDPROC pfn) |
| template<typename DataPtr > | |
| DataPtr | DLGetClassLongPtr (HWND hWnd, int n, DataPtr=NULL) |
| template<typename DataPtr > | |
| DataPtr | DLGetClassLongPtrA (HWND hWnd, int n) |
| template<typename DataPtr > | |
| DataPtr | DLGetClassLongPtrW (HWND hWnd, int n) |
| template<typename DataPtr > | |
| DataPtr | DLGetClassLongPtr (HWND hWnd, DataPtr *pPtr, int n) |
| template<> | |
| bool | DLGetClassLongPtr (HWND hWnd, int n, bool) |
| WNDPROC | DLGetClassWindowProc (HWND hWnd) |
| WNDPROC | DLGetClassWindowProcA (HWND hWnd) |
| WNDPROC | DLGetClassWindowProcW (HWND hWnd) |
| template<typename Type > | |
| Type | DLSetClassLongPtr (HWND hWnd, Type ptr, int n) |
| template<> | |
| bool | DLSetClassLongPtr (HWND hWnd, bool bo, int n) |
| template<typename Type > | |
| Type | DLSetClassLongPtrA (HWND hWnd, Type ptr, int n) |
| template<typename Type > | |
| Type | DLSetClassLongPtrW (HWND hWnd, Type ptr, int n) |
| WNDPROC | DLSetClassWindowProc (HWND hWnd, WNDPROC pfn) |
| WNDPROC | DLSetClassWindowProcA (HWND hWnd, WNDPROC pfn) |
| WNDPROC | DLSetClassWindowProcW (HWND hWnd, WNDPROC pfn) |
| UtilExport LONG | DLRegSetString (HKEY key, const MCHAR *data, const MCHAR *name=NULL) |
| Wrapper around the windows function RegSetValueEx. More... | |
| UtilExport LONG | DLRegSetDWord (HKEY key, DWORD data, const MCHAR *name=NULL) |
| Wrapper around the windows function RegSetValueEx for DWORD data. More... | |
| template<typename BlobType > | |
| LONG | DLRegSetBlob (HKEY key, const BlobType *lpbValue, DWORD n, LPCMSTR lpValueName=NULL) |
| UtilExport bool | GetQtTextExtent (const MCHAR *text, SIZE &extent) |
| Calculates the text extents using Qt. More... | |
| UtilExport BOOL | DLGetTextExtent (HDC hDC, const MCHAR *text, LPSIZE lpExtent, bool removeUIScaling=false, bool useQtTextWidth=true) |
| UtilExport BOOL | DLGetTextExtent (HDC hDC, const MCHAR *text, size_t len, LPSIZE lpExtent, bool removeUIScaling=false, bool useQtTextWidth=true) |
| UtilExport BOOL | DLTextOut (HDC hDC, int x, int y, const MCHAR *text) |
| UtilExport BOOL | DLTextOut (HDC hDC, int x, int y, const MCHAR *text, size_t len) |
| UtilExport LONG | DLTabbedTextOut (HDC hDC, int x, int y, const MCHAR *text, int nTabs, const INT *pTabPositions, int nTabOrigin) |
| UtilExport int | DLDrawText (HDC hDC, const MCHAR *lpString, LPRECT lpRect, UINT uFormat) |
| UtilExport int | DLDrawText (HDC hDC, const MCHAR *lpString, size_t len, LPRECT lpRect, UINT uFormat) |
| int | DLGetSystemMetrics (int nIndex) |
| Wrapper around the windows function GetSystemMetrics. More... | |
| WORD | PointerHiPart (ULONG_PTR ptr) |
| WORD | PointerLoPart (ULONG_PTR ptr) |
| WORD | PointerHiPart (LONG_PTR ptr) |
| WORD | PointerLoPart (LONG_PTR ptr) |
| WORD | PointerHiPart (void *ptr) |
| WORD | PointerLoPart (void *ptr) |
| unsigned int | fnv_32_buf (const void *buf, int len, unsigned int hval) |
| template<typename T > | |
| unsigned int | DLObjectHash (T &t, int HashTableSize=0) |
| unsigned int | DLPointerHash (const void *pv, int HashTableSize=0) |
| int | DL_abs (int n) |
| __int64 | DL_abs (__int64 n) |
| float | DL_abs (float f) |
| double | DL_abs (double f) |
| long double | DL_abs (long double f) |
| #define DL_STDEXT stdext |
| #define DL_NON_RTTI_OBJECT std::__non_rtti_object |
| #define DL_TYPENAME_OUTSIDE_TEMPLATE typename |
| typedef INT_PTR(CALLBACK* DL_NOTQUITE_WNDPROC) (HWND, UINT, WPARAM, LPARAM) |
| DataPtr DLGetWindowLongPtrA | ( | HWND | hWnd, |
| int | n = GWLP_USERDATA |
||
| ) |
| DataPtr DLGetWindowLongPtrW | ( | HWND | hWnd, |
| int | n = GWLP_USERDATA |
||
| ) |
| DataPtr DLGetWindowLongPtr | ( | HWND | hWnd, |
| DataPtr * | pPtr, | ||
| int | n = GWLP_USERDATA |
||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| DataPtr DLGetClassLongPtrA | ( | HWND | hWnd, |
| int | n | ||
| ) |
| DataPtr DLGetClassLongPtrW | ( | HWND | hWnd, |
| int | n | ||
| ) |
| DataPtr DLGetClassLongPtr | ( | HWND | hWnd, |
| DataPtr * | pPtr, | ||
| int | n | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| UtilExport LONG DLRegSetString | ( | HKEY | key, |
| const MCHAR * | data, | ||
| const MCHAR * | name = NULL |
||
| ) |
Wrapper around the windows function RegSetValueEx.
| key | - The handle to an open registry key |
| data | - The actual data to be added to the registry |
| name | - The name of the registry key HKEY query;
MSTR sub_key;
LONG opened = ::RegOpenKeyEx(HKEY_CURRENT_USER, sub_key.data(), 0, KEY_ALL_ACCESS, &query);
if (opened != ERROR_SUCCESS)
return;
UtilExport LONG DLRegSetString(HKEY key, const MCHAR *data, const MCHAR *name=NULL) Wrapper around the windows function RegSetValueEx. Definition: strclass.h:738 const wchar_t * data() const |
| UtilExport LONG DLRegSetDWord | ( | HKEY | key, |
| DWORD | data, | ||
| const MCHAR * | name = NULL |
||
| ) |
Wrapper around the windows function RegSetValueEx for DWORD data.
| key | - The handle to an open registry key |
| data | - The actual data to be added to the registry |
| name | - The name of the registry key |
| UtilExport bool GetQtTextExtent | ( | const MCHAR * | text, |
| SIZE & | extent | ||
| ) |
Calculates the text extents using Qt.
| [in] | text | - The text. |
| [out] | extent | - The text's extent as calculated via qApp->fontMetrics().boundingRect(text). |
| UtilExport BOOL DLGetTextExtent | ( | HDC | hDC, |
| const MCHAR * | text, | ||
| LPSIZE | lpExtent, | ||
| bool | removeUIScaling = false, |
||
| bool | useQtTextWidth = true |
||
| ) |
| UtilExport BOOL DLGetTextExtent | ( | HDC | hDC, |
| const MCHAR * | text, | ||
| size_t | len, | ||
| LPSIZE | lpExtent, | ||
| bool | removeUIScaling = false, |
||
| bool | useQtTextWidth = true |
||
| ) |
| UtilExport BOOL DLTextOut | ( | HDC | hDC, |
| int | x, | ||
| int | y, | ||
| const MCHAR * | text | ||
| ) |
| UtilExport BOOL DLTextOut | ( | HDC | hDC, |
| int | x, | ||
| int | y, | ||
| const MCHAR * | text, | ||
| size_t | len | ||
| ) |
| UtilExport LONG DLTabbedTextOut | ( | HDC | hDC, |
| int | x, | ||
| int | y, | ||
| const MCHAR * | text, | ||
| int | nTabs, | ||
| const INT * | pTabPositions, | ||
| int | nTabOrigin | ||
| ) |
| UtilExport int DLDrawText | ( | HDC | hDC, |
| const MCHAR * | lpString, | ||
| LPRECT | lpRect, | ||
| UINT | uFormat | ||
| ) |
| UtilExport int DLDrawText | ( | HDC | hDC, |
| const MCHAR * | lpString, | ||
| size_t | len, | ||
| LPRECT | lpRect, | ||
| UINT | uFormat | ||
| ) |
Wrapper around the windows function GetSystemMetrics.
In Vista+ when running Aero, the value returned for SM_CXFRAME and SM_CYFRAME is incorrect in order to provide backwards compatibility with NT. To get the correct value, also need to add the value from SM_CXPADDEDBORDER. The implementation of this method automatically corrects the values returned for SM_CXFRAME and SM_CYFRAME. Note that SM_CXSIZEFRAME is the same index as SM_CXFRAME, and SM_CYSIZEFRAME as SM_CYFRAME;
| nIndex | - The system metric or configuration setting to be retrieved. |
|
inline |
|
inline |
|
inline |