Determin menu bar height dynamically.

Minor sample changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-09-30 10:40:52 +00:00
parent 5c3e4ed256
commit 0edfce279c
6 changed files with 42 additions and 11 deletions

View File

@@ -366,7 +366,7 @@ bool MyPrintout::OnPrintPage(int page)
wxChar buf[200];
wxSprintf(buf, wxT("PAGE %d"), page);
dc->DrawText(buf, 10, 10);
// dc->DrawText(buf, 10, 10);
return TRUE;
}
@@ -432,6 +432,7 @@ void MyPrintout::DrawPageOne(wxDC *dc)
// Set the scale and origin
dc->SetUserScale(actualScale, actualScale);
dc->SetDeviceOrigin( (long)posX, (long)posY );
//dc->SetUserScale(1.0, 1.0);
frame->Draw(*dc);
}