How to get the HWND? |
Post Reply |
Author | |
freehawk
Groupie Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
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
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
Thank you for the fast reply. pView->SendMessage()
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
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 |