Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
opens the PDF file, outside the App |
Post Reply
|
| Author | |
lakkan
Senior Member
Joined: 10 Dec 15 Location: Bangalore Status: Offline Points: 53 |
Post Options
Thanks(0)
Quote Reply
Topic: opens the PDF file, outside the AppPosted: 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 Edited by lakkan - 06 Jan 16 at 12:26PM |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store