![]() |
How to get the HWND? |
Post Reply
|
| Author | |
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2004 at 12:09am |
|
Thank you for the fast reply. pView->SendMessage()
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2004 at 1:12am |
|
I know. its just a sample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
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 |