1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#ifndef _MUI_HPP
#define _MUI_HPP
//-----------------------------------------------------------------------------
// Copyright (C) 2001 Radical Entertainment Ltd. All rights reserved.
//
// MUI.hpp
//
// Description: Container class for custom UI windows for use in Maya.
//
// Modification History:
// + Created Sep 30, 2001 -- bkusy
//-----------------------------------------------------------------------------
//----------------------------------------
// System Includes
//----------------------------------------
//----------------------------------------
// Project Includes
//----------------------------------------
//----------------------------------------
// Forward References
//----------------------------------------
//----------------------------------------
// Constants, Typedefs and Statics
//----------------------------------------
//This is an example callback.
inline BOOL CALLBACK PopupCallBack( HWND hWnd, UINT uMsg, UINT wParam, long lParam )
{
switch (uMsg)
{
case WM_INITDIALOG:
{
return true;
}
break;
default:
{
// EndDialog( hWnd, 0); //this is how you close the window.
return false;
}
break;
}
}
class MUI
{
public:
enum {
YES,
NO,
CANCEL,
SAVE,
SET,
NEW,
OPEN
};
static int ConfirmDialog( const char* message );
static bool FileDialog( char* filePath, int filePathSize,
const char* windowTitle = 0,
const char* extensionFilter = 0,
const char* defaultExtension = 0,
int browserType = MUI::OPEN
);
static void ErrorDialog( const char* message );
static void InfoDialog( const char* message );
static void PopupDialogue( int id, DLGPROC callBack );
private:
};
#endif
|