51static BOOL CALLBACK _gen_mtl_names_dialog_proc(HWND Hwnd,
UINT message,WPARAM wParam,LPARAM lParam);
75 MaxInterface(maxinterface),
95 ReleaseISpinner(NameIndexSpin);
118 BOOL result = DialogBoxParam
122 MaxInterface->GetMAXHWnd(),
127 if (result ==
TRUE) {
153 if (strlen(buf) == 0) {
154 MessageBox(Hwnd,
"Please enter a root name to use.\n",
"Error",MB_OK);
182 NameIndexSpin = SetupIntSpinner
194 char buf[_MAX_FNAME];
195 _splitpath(MaxInterface->GetCurFileName(),
NULL,
NULL,buf,
NULL);
207 switch (LOWORD(wParam))
215 Options->NameIndex = NameIndexSpin->GetIVal();
216 GetWindowText(GetDlgItem(Hwnd,
IDC_BASE_NAME_EDIT),Options->RootName,
sizeof(Options->RootName));
249 if (message == WM_INITDIALOG) {
255 return dialog->
Dialog_Proc(hwnd, message, wparam, lparam);
bool Dialog_Proc(HWND hWnd, UINT message, WPARAM wParam, LPARAM)
GenMtlNamesDialogClass(Interface *maxinterface)
~GenMtlNamesDialogClass()
bool Get_Options(OptionsStruct *options)
friend BOOL CALLBACK _gen_mtl_names_dialog_proc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)