MaxSDK Namespace Reference
|
HINSTANCE | GetHInstance () |
| Get the calling module's HINSTANCE. More...
|
|
MSTR | GetResourceStringAsMSTR (UINT resourceId) |
| Extract a resource from the calling module's string table. More...
|
|
bool | GetResourceStringAsMSTR (UINT resourceId, MSTR &resourceString) |
| Extract a resource from the calling module's string table. More...
|
|
UtilExport MSTR | GetResourceStringAsMSTR (HINSTANCE hinstance, UINT resourceId) |
| Extract a resource from a module's string table. More...
|
|
UtilExport bool | GetResourceStringAsMSTR (HINSTANCE hinstance, UINT resourceId, MSTR &resourceString) |
| Extract a resource from a module's string table. More...
|
|
IPhysicalCamera_BitmapApertureSampler::RGBValue | operator* (const float a, const IPhysicalCamera_BitmapApertureSampler::RGBValue &b) |
|
IPhysicalCamera_BitmapApertureSampler::RGBValue | operator* (const IPhysicalCamera_BitmapApertureSampler::RGBValue &a, const float b) |
|
IPhysicalCamera_BitmapApertureSampler::RGBValue | operator* (const IPhysicalCamera_BitmapApertureSampler::RGBValue &a, const IPhysicalCamera_BitmapApertureSampler::RGBValue &b) |
|
IPhysicalCamera_BitmapApertureSampler::RGBValue | operator+ (const IPhysicalCamera_BitmapApertureSampler::RGBValue &a, const IPhysicalCamera_BitmapApertureSampler::RGBValue &b) |
|
IPhysicalCamera_BitmapApertureSampler::RGBValue | operator- (const IPhysicalCamera_BitmapApertureSampler::RGBValue &a, const IPhysicalCamera_BitmapApertureSampler::RGBValue &b) |
|
CoreExport bool | SearchComboBox (HWND hWnd, MCHAR key, const MCHAR *szTrim=NULL) |
| Multiple character search for ComboBoxes. More...
|
|
CoreExport bool | SearchListBox (HWND hWnd, MCHAR key, const MCHAR *szTrim=NULL) |
| Multiple character search for ListBoxes. More...
|
|
CoreExport int | GetDefaultToolTipMaxWidth () |
|
HINSTANCE MaxSDK::GetHInstance |
( |
| ) |
|
|
inline |
Get the calling module's HINSTANCE.
- Returns
- Handle pointing to the start of the calling module.
EXTERN_C IMAGE_DOS_HEADER __ImageBase
Definition: dllutilities.h:16
MSTR MaxSDK::GetResourceStringAsMSTR |
( |
UINT |
resourceId | ) |
|
|
inline |
Extract a resource from the calling module's string table.
GetResourceStringAsMSTR is essentially a thread-safe wrapper around the Win32 API's LoadString, but it saves client code from the bother of dealing with its HINSTANCE, of maintaining a buffer, and reduces duplicated code.
- Parameters
-
resourceId | Identifier for the desired string resource within the calling module's string table. |
- Returns
- An MSTR containing the resource string, empty if the requested resource is not found.
HINSTANCE GetHInstance()
Get the calling module's HINSTANCE.
Definition: dllutilities.h:28
MSTR GetResourceStringAsMSTR(UINT resourceId)
Extract a resource from the calling module's string table.
Definition: dllutilities.h:46
bool MaxSDK::GetResourceStringAsMSTR |
( |
UINT |
resourceId, |
|
|
MSTR & |
resourceString |
|
) |
| |
|
inline |
Extract a resource from the calling module's string table.
GetResourceStringAsMSTR is essentially a thread-safe wrapper around the Win32 API's LoadString, but it saves client code from the bother of dealing with its HINSTANCE, of maintaining a buffer, and reduces duplicated code.
- Parameters
-
resourceId | Identifier for the desired string resource within the calling module's string table. |
resourceString | Updated to contain the resource string if the requested resource is not found. |
- Returns
- true if the requested resource is found, false if not
HINSTANCE GetHInstance()
Get the calling module's HINSTANCE.
Definition: dllutilities.h:28
MSTR GetResourceStringAsMSTR(UINT resourceId)
Extract a resource from the calling module's string table.
Definition: dllutilities.h:46
UtilExport MSTR MaxSDK::GetResourceStringAsMSTR |
( |
HINSTANCE |
hinstance, |
|
|
UINT |
resourceId |
|
) |
| |
Extract a resource from a module's string table.
GetResourceString is essentially a thread-safe wrapper around the Win32 API's LoadString, but it saves client code from the bother of maintaining a buffer and reduces duplicated code. Optimally, GetResourceString should be called through the single-parameter version from dllutilities.h.
- Parameters
-
hinstance | Handle to the module whose string table will be queried for the resource. |
resourceId | Identifier for the desired string resource within the calling module's string table. |
- Returns
- An MSTR containing the resource string, empty if the requested resource is not found.
UtilExport bool MaxSDK::GetResourceStringAsMSTR |
( |
HINSTANCE |
hinstance, |
|
|
UINT |
resourceId, |
|
|
MSTR & |
resourceString |
|
) |
| |
Extract a resource from a module's string table.
GetResourceString is essentially a thread-safe wrapper around the Win32 API's LoadString, but it saves client code from the bother of maintaining a buffer and reduces duplicated code. Optimally, GetResourceString should be called through the single-parameter version from dllutilities.h.
- Parameters
-
hinstance | Handle to the module whose string table will be queried for the resource. |
resourceId | Identifier for the desired string resource within the calling module's string table. |
resourceString | Updated to contain the resource string if the requested resource is not found. |
- Returns
- true if the requested resource is found, false if not
30 return IPhysicalCamera_BitmapApertureSampler::RGBValue(a * b.r, a * b.g, a * b.b);
40 return IPhysicalCamera_BitmapApertureSampler::RGBValue(a.r * b.r, a.g * b.g, a.b * b.b);
45 return IPhysicalCamera_BitmapApertureSampler::RGBValue(a.r + b.r, a.g + b.g, a.b + b.b);
50 return IPhysicalCamera_BitmapApertureSampler::RGBValue(a.r - b.r, a.g - b.g, a.b - b.b);
Multiple character search for ComboBoxes.
This method will select an entry in the ComboBox based on the multiple key entries over a set time period. The functionality mimics the standard windows ListView behavior, including the documented one second time period for key entries. It is intended to be used in conjunction with the WM_CHAR message in the ComboBox's callback.
Example usage:
- Parameters
-
[in] | hWnd | Window handle of ComboBox |
[in] | key | Character entered by user |
[in] | szTrim | Optional parameter. Default is NULL. Any leading characters in the ComboBox entries that are contained in szTrim will be removed prior to comparing to the search string. |
- Returns
- true if match found, false if not
Multiple character search for ListBoxes.
This method will select an entry in the ListBox based on the multiple key entries over a set time period. The functionality mimics the standard windows ListView behavior, including the documented one second time period for key entries. It is intended to be used in conjunction with the WM_CHAR message in the ListBox's callback.
Example usage:
- Parameters
-
[in] | hWnd | Window handle of ListBox |
[in] | key | Character entered by user |
[in] | szTrim | Optional parameter. Default is NULL. Any leading characters in the ListBox entries that are contained in szTrim will be removed prior to comparing to the search string. |
- Returns
- true if match found, false if not