Jump to content
  • Advertisement
Sign in to follow this  

rollup, spinners & edit boxes

This topic is 3904 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: ... 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; } ... 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!