Mercurial > mercurial > hgweb_searcher03.cgi
diff src/preview.cpp @ 11:dfcf8c973219
Implement Cache maker.
author | pyon@macmini |
---|---|
date | Wed, 07 May 2014 20:38:57 +0900 |
parents | 29021e6e1ebe |
children | 52958cd4a073 |
line wrap: on
line diff
--- a/src/preview.cpp Mon Apr 28 18:14:04 2014 +0900 +++ b/src/preview.cpp Wed May 07 20:38:57 2014 +0900 @@ -1,5 +1,5 @@ // Filename : preview.cpp -// Last Change: 28-Apr-2014. +// Last Change: 01-May-2014. // #include "preview.h" @@ -102,7 +102,7 @@ m_buttonPrint = new wxButton( this, ID_PRINT, wxT("印刷"), wxDefaultPosition, wxDefaultSize, 0 ); bSizerMenu->Add( m_buttonPrint, 0, wxALL, 5 ); - bSizerMenu->Add( 0, 0, 1, 0, 5 ); + bSizerMenu->Add( 0, 0, 0, 0, 5 ); m_buttonClose = new wxButton( this, wxID_CANCEL, wxT("閉じる"), wxDefaultPosition, wxDefaultSize, 0 ); m_buttonClose->SetDefault(); @@ -136,6 +136,7 @@ wxBitmap bmp( img.Scale( w, h, wxIMAGE_QUALITY_HIGH ) ); m_bitmap->SetBitmap( bmp ); + m_scrolledWindow->Scroll( 0, 0 ); m_scrolledWindow->SetScrollbars( 10, 10, 0, h/10 ); m_preview = m_imagefiles[n]; }