/* * Copyright 2004 Perforce Software. All rights reserved. * * Developed by Data Shades Ltd. */ #include "ResolveDialog.h" #define BUFSIZE 80 ResolveDialog::ResolveDialog( PluginOperations *ops ) : Dialog( ops, IDD_RESOLVE_DIALOG, DialogWndProc ) { } BOOL CALLBACK ResolveDialog::DialogWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { switch(uMsg) { case WM_INITDIALOG: { ResolveDialog *dialog = ( ResolveDialog * )lParam; SaveDialogObject( hWnd, dialog ); CheckRadioButton( hWnd, IDC_CANCEL_RADIO, IDC_UNDO_RADIO, IDC_CANCEL_RADIO ); Centre( hWnd ); } break; case WM_COMMAND: ResolveDialog *dialog = ( ResolveDialog * )DialogObject( hWnd ); switch ( LOWORD( wParam ) ) { case IDOK: if ( IsDlgButtonChecked( hWnd, IDC_CANCEL_RADIO ) == BST_CHECKED ) { dialog->SetOption( IDC_CANCEL_RADIO ); } else if ( IsDlgButtonChecked( hWnd, IDC_CHECK_IN_RADIO ) == BST_CHECKED ) { dialog->SetOption( IDC_CHECK_IN_RADIO ); } else if ( IsDlgButtonChecked( hWnd, IDC_UNDO_RADIO ) == BST_CHECKED ) { dialog->SetOption( IDC_UNDO_RADIO ); } EndDialog( hWnd, TRUE ); return true; case IDCANCEL: EndDialog( hWnd, FALSE ); return true; } } return false; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11314 | Robert Cowham | Initial population of perforce_software version of P4OFC | ||
//guest/robert_cowham/perforce/P4OFC/main/libp4gt/ResolveDialog.cpp | |||||
#1 | 10843 | Robert Cowham |
Initial version of P4OFC source code. See README.txt (and LICENSE.txt and doc\P4OFC-Design.docx) |