mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Add different SetText values to MaxCompat header.
Restores compilation of Max 7 plugin, as its SetText expects a non-const pointer. Additionally, NotifyInfo should already be declared in notify.h.
This commit is contained in:
@ -362,7 +362,7 @@ static void LoadCombo(HWND hCombo, NameType* nameInt, int size, int curVal)
|
|||||||
void plStandardStage::IInitDlg()
|
void plStandardStage::IInitDlg()
|
||||||
{
|
{
|
||||||
ICustEdit* edit = GetICustEdit(GetDlgItem(fDlg, IDC_ANIM_NAME));
|
ICustEdit* edit = GetICustEdit(GetDlgItem(fDlg, IDC_ANIM_NAME));
|
||||||
edit->SetText(fAnimName.c_str());
|
edit->SetText(const_cast<SETTEXT_VALUE_TYPE>(fAnimName.c_str()));
|
||||||
|
|
||||||
HWND hForward = GetDlgItem(fDlg, IDC_FORWARD_COMBO);
|
HWND hForward = GetDlgItem(fDlg, IDC_FORWARD_COMBO);
|
||||||
LoadCombo(hForward, gForward, sizeof(gForward), fForward);
|
LoadCombo(hForward, gForward, sizeof(gForward), fForward);
|
||||||
|
@ -86,8 +86,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
|
|
||||||
#if MAX_VERSION_MAJOR <= 10 // Max 2008
|
#if MAX_VERSION_MAJOR <= 10 // Max 2008
|
||||||
# define GETNAME_RETURN_TYPE TCHAR*
|
# define GETNAME_RETURN_TYPE TCHAR*
|
||||||
|
# define SETTEXT_VALUE_TYPE MCHAR*
|
||||||
#else
|
#else
|
||||||
# define GETNAME_RETURN_TYPE const TCHAR*
|
# define GETNAME_RETURN_TYPE const TCHAR*
|
||||||
|
# define SETTEXT_VALUE_TYPE const MCHAR*
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Old versions of Max define this as an integer, not a Class_ID
|
// Old versions of Max define this as an integer, not a Class_ID
|
||||||
|
@ -50,7 +50,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
|
|
||||||
class ActionCallback;
|
class ActionCallback;
|
||||||
struct ActionDescription;
|
struct ActionDescription;
|
||||||
struct NotifyInfo;
|
|
||||||
|
|
||||||
typedef bool(*ActionCallbackFunc)(int);
|
typedef bool(*ActionCallbackFunc)(int);
|
||||||
|
|
||||||
|
@ -44,14 +44,6 @@ class Class_ID;
|
|||||||
class Interface;
|
class Interface;
|
||||||
class plMaxNode;
|
class plMaxNode;
|
||||||
|
|
||||||
#include <maxversion.h>
|
|
||||||
#if MAX_VERSION_MAJOR >= 9
|
|
||||||
struct NotifyInfo;
|
|
||||||
#else
|
|
||||||
// Max headers are more minimalistic in pre-9 maxes
|
|
||||||
# include <notify.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class plComponentDlg
|
class plComponentDlg
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
Reference in New Issue
Block a user