Print Page | Close Window

How to get the HWND?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=899
Printed Date: 25 December 2024 at 8:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to get the HWND?
Posted By: freehawk
Subject: How to get the HWND?
Date Posted: 29 June 2004 at 9:56pm

Hello

 I opened a new file as the following

 pDocTemplate->OpenDocumentFile(lineInfo.pFileName);

now I want to send a message to the window, but I can not get HWND of the window. Please help me how to do?

Thank you.

-Freehawk

 




Replies:
Posted By: Oleg
Date Posted: 29 June 2004 at 10:53pm

 CDocument* pDoc = m_pDocTemplate->OpenDocumentFile(lineInfo.pFileName);

 POSITION pos = pDoc->GetFirstViewPosition();

 CView* pView = pDoc->GetNextView(pos);

 pView->SendMessage()



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: freehawk
Date Posted: 30 June 2004 at 12:09am

Thank you for the fast reply.

pView->SendMessage()
It can not send anything. Please check it.

Originally posted by oleg oleg wrote:

 CDocument* pDoc = m_pDocTemplate->OpenDocumentFile(lineInfo.pFileName);

 POSITION pos = pDoc->GetFirstViewPosition();

 CView* pView = pDoc->GetNextView(pos);

 pView->SendMessage()



Posted By: Oleg
Date Posted: 30 June 2004 at 1:12am
I know. its just a sample.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: freehawk
Date Posted: 30 June 2004 at 2:00am

Thank you. I knew the way.

By the way, how to set the view as a active view in the tab?

 

Originally posted by oleg oleg wrote:

I know. its just a sample.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net