Print Page | Close Window

opens the PDF file, outside the App

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3241
Printed Date: 04 Feb 26 at 5:27AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: opens the PDF file, outside the App
Posted By: lakkan
Subject: opens the PDF file, outside the App
Date Posted: 06 Jan 16 at 12:23PM
Hi,

I am working with Licensed version of Debenu..

Here below is my problem, any help please.

Below piece of code, though it works, but PDF file is opened as popup window, outside the application, where as window created is a child and it is part of parent window owned my application.

I wanted PDF file, to be opened in a child window, which is part of parent window owned by application..

DebenuPDFLibraryDLL1211 QP(L"DebenuPDFLibraryDLL1211.dll");
//Library key    
std::wstring strLicenseKey = L"xxxxxxx5y"; 
// Unlock the library
int iResult = QP.UnlockKey(strLicenseKey);
int nState = QP.LoadState();


#if defined c_switchPlatformWIN32
  hWnd=CreateWindowEx(0,"DebenuView",NULL,WS_CHILD,0,0,0,0,(HWND)pDataParent,0, (HINSTANCE)nState,0); //Here window is created
hdc = ::GetDC(hWnd);   //Gets the device context of the above window

#endif
int nLoad = QP.LoadFromFile(image_puForeign->acPathTemp,L""); //Here it loads PDF file

QP.RenderPageToDC(100, 1,hdc); //Render the PDF file


Lakkan




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk