From 43d65dc03325bcce8561423b9607f7e114355f7d Mon Sep 17 00:00:00 2001 From: ferbas Date: Wed, 13 Jan 2010 09:41:29 +0000 Subject: initial import git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@545 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sources/import/SDK/wxInit.cpp | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp') diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp new file mode 100644 index 0000000..b7ae374 --- /dev/null +++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/wxInit.cpp @@ -0,0 +1,52 @@ +/********************************************************************* + + ADOBE SYSTEMS INCORPORATED + Copyright (C) 2008 Adobe Systems Incorporated + All rights reserved. + + NOTICE: Adobe permits you to use, modify, and distribute this file + in accordance with the terms of the Adobe license agreement + accompanying it. If you have received this file from a source other + than Adobe, then your use, modification, or distribution of it + requires the prior written permission of Adobe. + + --------------------------------------------------------------------- + + wxInit.cpp + + - Initialization code for wxWidgets. + +*********************************************************************/ +#include "wx/app.h" +#include "wxInit.h" +#include "PIMain.h" + +IMPLEMENT_APP_NO_MAIN(PluginApp) + +wxPoint offscreenPoint(-5000,-5000); + +bool PluginApp::OnInit() +{ + return true; +} + + +BEGIN_EVENT_TABLE(PluginApp, wxApp) + END_EVENT_TABLE() + +AcrobatFrame::AcrobatFrame() : wxFrame(NULL, -1, "", offscreenPoint) +{ +#ifdef WIN_PLATFORM + HWND oldHWnd = (HWND)GetHandle(); + SetHWND((WXHWND)gHWND); + if(oldHWnd) + ::DestroyWindow(oldHWnd); +#endif +} + + +BEGIN_EVENT_TABLE(AcrobatFrame, wxFrame) + END_EVENT_TABLE() + + + -- cgit v1.2.3