Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogre/Tools/3dsmaxExport/OgreExport/src/OgreMaxExportTabMaterial.cpp @ 11

Last change on this file since 11 was 6, checked in by anonymous, 17 years ago

=…

File size: 888 bytes
Line 
1#include "OgreExport.h"
2#include "resource.h"
3
4static OgreMaxExport_Material* sInst;
5
6void OgreMaxExport_Material::onInitDialog(HWND hDlg) {
7        OgreMaxExport_TabPaneHandler::onInitDialog(hDlg);
8}
9
10void OgreMaxExport_Material::onDestroy() {
11        update();
12}
13
14// read the contents from the dialog controls
15void 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
20INT_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.