1

I'm currently using 3d's Max 2016 SDK via MV Studio 2012. I've created usual project with Plugin Wizard, it creates panel with text and button (and does many actions inside the code, but that is not the theme). So, now I want to add some button to activate Windows File Dialog to choose path (folder) and name of .bin-file that will be created afterwards.

I tried to find something in the toolbox at the resource editor but have not succeed. What should I do?

Nikys
  • 31
  • 5
  • Welcome to SO! Please read this for best results when using this site. http://stackoverflow.com/help/mcve – Neo Feb 22 '17 at 12:02

2 Answers2

2

As you said, you can use directly winapi to create your dialog, but the aesthetic result of the window should differ a bit from dialog already used in 3dsMax. Autodesk has made a lot of UI controls by themselves (or patched winapi ones) and provide their access in the SDK to have something homogeneous between the application and plugins.

What you are looking for here, is the function named DoMaxSaveAsDialog and should be available in Interface8.

Interface8 Class Reference

user2328447
  • 1,807
  • 1
  • 21
  • 27
jbltx
  • 1,255
  • 2
  • 19
  • 34
1

The problem is solved de-facto. Just used pushbutton and GetSaveFileName function from windows.h header. For details, read here: how to save file with GetSaveFileName in win32?

Community
  • 1
  • 1
Nikys
  • 31
  • 5