Line | |
---|
1 | #include "OgreExport.h" |
---|
2 | #include "resource.h" |
---|
3 | |
---|
4 | static OgreMaxExport_Material* sInst; |
---|
5 | |
---|
6 | void OgreMaxExport_Material::onInitDialog(HWND hDlg) { |
---|
7 | OgreMaxExport_TabPaneHandler::onInitDialog(hDlg); |
---|
8 | } |
---|
9 | |
---|
10 | void OgreMaxExport_Material::onDestroy() { |
---|
11 | update(); |
---|
12 | } |
---|
13 | |
---|
14 | // read the contents from the dialog controls |
---|
15 | void OgreMaxExport_Material::update() { |
---|
16 | |
---|
17 | } |
---|
18 | |
---|
19 | // for the sake of sanity, keep the dlgproc and the handler class implementation here in the same source file |
---|
20 | INT_PTR CALLBACK MaterialTabDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { |
---|
21 | |
---|
22 | switch(message) { |
---|
23 | case WM_INITDIALOG: |
---|
24 | sInst = (OgreMaxExport_Material*) lParam; |
---|
25 | |
---|
26 | sInst->onInitDialog(hDlg); |
---|
27 | SetWindowPos(hDlg, HWND_TOP, 10, 40, 0, 0, SWP_NOSIZE); |
---|
28 | ShowWindow(hDlg, SW_SHOW); |
---|
29 | break; |
---|
30 | |
---|
31 | case WM_COMMAND: |
---|
32 | switch(LOWORD(wParam)) { |
---|
33 | } |
---|
34 | break; |
---|
35 | |
---|
36 | case WM_DESTROY: |
---|
37 | sInst->onDestroy(); |
---|
38 | break; |
---|
39 | } |
---|
40 | return FALSE; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.