/////////////////////////////////////////////////////////////////////////////
-// Name: csprint.cpp
+// Name: contrib/samples/ogl/studio/csprint.cpp
// Purpose: Printing and clipboard functionality
// Author: Julian Smart
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-// #pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#endif
#ifndef WX_PRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
-#include <wx/deprecated/setup.h>
-#include <wx/deprecated/wxexpr.h>
+#include "wx/ogl/ogl.h" // base header of OGL, includes and adjusts wx/deprecated/setup.h
-#include <wx/clipbrd.h>
+#include "wx/clipbrd.h"
#ifdef __WXMSW__
-#include <wx/metafile.h>
+#include "wx/metafile.h"
#endif
#include "studio.h"
if (!newBitmap->Ok())
{
delete newBitmap;
-
+
wxChar buf[200];
wxSprintf(buf, _T("Sorry, could not allocate clipboard bitmap (%dx%d)"), (maxX+10), (maxY+10));
wxMessageBox(buf, _T("Clipboard copy problem"));
// Close clipboard
wxCloseClipboard();
}
-
+
delete newBitmap;
delete mf;
return true;
}
-
-