Sign in to follow this  

rollup, spinners & edit boxes

This topic is 3594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everybody, I've made a 3DS Studio scene exporter using Max SDK and I'd like to add a GUI in order to let the users adjust some export settings... well, right now I have a simple dialog with only two buttons "Export" and "Cancel", here is the code: [CODE]... INT_PTR CALLBACK DlgProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam); bool CExporter::ShowOptions( HINSTANCE aHInstance, HWND aHwnd ) { INT_PTR lResult = DialogBoxParam( aHInstance, MAKEINTRESOURCE(IDD_EXPORTERDLG), aHwnd, DlgProc, (LPARAM)this ); KRM_ASSERT( lResult >= 0 ); return true; } INT_PTR CALLBACK CExporter::DlgProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam) { static CExporter* lExporter; //class with Exporter implementation switch(message) { case WM_INITDIALOG: lExporter = (CExporter*)lParam; return TRUE; case WM_COMMAND: switch(LOWORD(wParam)) { case IDC_BUTTON_EXPORT: EndDialog(hWnd,0); break; case IDC_BUTTON_CANCEL: EndDialog(hWnd,0); break; } break; case WM_CLOSE: EndDialog(hWnd,0); return TRUE; } return FALSE; } ...[/CODE] I'd like to add a rollup with some spinners linked to their edit boxes in it (just to show numeric values), I've tried It but It doesn't seem to work I can't get the values... can anybody tell me how to do that or show me a simple example? Thanks a lot!

Share this post


Link to post
Share on other sites

This topic is 3594 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this