Got printing, toolbar samples compiling under Windows again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,20 +56,20 @@ all:
|
|||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
cd $(WXDIR)\samples\internat
|
cd $(WXDIR)\samples\internat
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
cd $(WXDIR)\samples\ownerdrw
|
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
|
||||||
cd $(WXDIR)\samples\checklst
|
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
|
||||||
cd $(WXDIR)\samples\dnd
|
cd $(WXDIR)\samples\dnd
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
cd $(WXDIR)\samples\joytest
|
cd $(WXDIR)\samples\joytest
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
cd $(WXDIR)\samples\regtest
|
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
|
||||||
cd $(WXDIR)\samples\taskbar
|
cd $(WXDIR)\samples\taskbar
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
cd $(WXDIR)\samples\memcheck
|
cd $(WXDIR)\samples\memcheck
|
||||||
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
|
cd $(WXDIR)\samples\regtest
|
||||||
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
|
cd $(WXDIR)\samples\ownerdrw
|
||||||
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
|
cd $(WXDIR)\samples\checklst
|
||||||
|
nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
# cd $(WXDIR)\samples\hello
|
# cd $(WXDIR)\samples\hello
|
||||||
# nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
# nmake -f makefile.nt DEBUG_FLAGS=$(DEBUG_FLAGS) LINK_DEBUG_FLAGS=$(LINK_DEBUG_FLAGS)
|
||||||
# cd $(WXDIR)\samples\fractal
|
# cd $(WXDIR)\samples\fractal
|
||||||
|
BIN
samples/printing/mondrian.ico
Normal file
BIN
samples/printing/mondrian.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 B |
@@ -52,15 +52,10 @@ wxFont *itemFont;
|
|||||||
|
|
||||||
float zoom_factor = 1.0;
|
float zoom_factor = 1.0;
|
||||||
|
|
||||||
#ifdef __X__
|
|
||||||
#include "aiai.xbm"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
#include "folder.xpm"
|
#include "folder.xpm"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Writes a header on a page. Margin units are in millimetres.
|
// Writes a header on a page. Margin units are in millimetres.
|
||||||
bool WritePageHeader(wxPrintout *printout, wxDC *dc, char *text, float mmToLogical);
|
bool WritePageHeader(wxPrintout *printout, wxDC *dc, char *text, float mmToLogical);
|
||||||
|
|
||||||
@@ -325,8 +320,15 @@ void MyFrame::Draw(wxDC& dc)
|
|||||||
dc.DrawLine(0, 0, 200, 200);
|
dc.DrawLine(0, 0, 200, 200);
|
||||||
dc.DrawLine(200, 0, 0, 200);
|
dc.DrawLine(200, 0, 0, 200);
|
||||||
|
|
||||||
|
#if defined(__WXGTK__)
|
||||||
wxIcon my_icon( folder_xpm );
|
wxIcon my_icon( folder_xpm );
|
||||||
dc.DrawIcon( my_icon, 100, 100, TRUE );
|
#elif defined(__WXMSW__)
|
||||||
|
wxIcon my_icon( "mondrian" );
|
||||||
|
#elif
|
||||||
|
#error "Platform not supported."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
dc.DrawIcon( my_icon, 100, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnSize(wxSizeEvent& event )
|
void MyFrame::OnSize(wxSizeEvent& event )
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
aiai_icn ICON "aiai.ico"
|
mondrian ICON "mondrian.ico"
|
||||||
#include "wx/msw/wx.rc"
|
#include "wx/msw/wx.rc"
|
||||||
|
|
||||||
|
BIN
samples/toolbar/mondrian.ico
Normal file
BIN
samples/toolbar/mondrian.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 B |
Reference in New Issue
Block a user