Ignore:
Timestamp:
Sep 3, 2007, 2:09:14 PM (14 years ago)
Author:
Eugene Romanenko
Message:

print dialog: add 'Ignore printer margins' option to fix #110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/printDlg.cpp

    r199 r243  
    448448        long margin_right_min  = pcurForm->cx - pcurForm->xRightClip;
    449449
     450        if ( WinQueryButtonCheckstate( hwnd, IDC_IGNMARGINS ) ) {
     451            margin_top_min = margin_left_min = margin_bottom_min = margin_right_min = 0;
     452        }
     453
    450454        long margin_top_max    = pcurForm->cy - margin_bottom_min;
    451455        long margin_left_max   = pcurForm->cx - margin_right_min;
     
    630634                break;
    631635
     636                case IDC_IGNMARGINS:
     637                {
     638                    if ( ( SHORT2FROMMP(mp1) == BN_CLICKED ) ||
     639                         ( SHORT2FROMMP(mp1) == BN_DBLCLICKED ) )
     640                    {
     641                        _this->applyForm( hwnd );
     642                    }
     643                }
     644                break;
     645
    632646                // removed (copies to job props)
    633647                //case IDC_COPIES:
Note: See TracChangeset for help on using the changeset viewer.