Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to get the HWND?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get the HWND?

 Post Reply Post Reply
Author
Message
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post Topic: How to get the HWND?
    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

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post 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()

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2004 at 1:12am
I know. its just a sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 7.031 seconds.