ࡱ>   I"#$%&'()*,-./012346789:;<=>@ABCDEFGHKLMNOPQRSUVWXYZ[\]_`abcdefghiRoot EntryгOWorkspace State Browser Editormymfc24b#F:\mfcproject\mymfc24B\mymfc24B.dsp(t(s/body> ), 0 warning(s) PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView drawing void CMymfc24BView::OnDraw(CDC* pDC) { CMymfc24BDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((4b#F:\mfcproject\mymfc24B\mymfc24B.dsp(t(s/body> ), 0 warning(s) PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView drawing void CMymfc24BView::OnDraw(CDC* pDC) { CMymfc24BDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((MLJL4b#F:\mfcproject\mymfc24B\mymfc24B.dsp(t(s/body> ), 0 warning(s) PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView drawing void CMymfc24BView::OnDraw(CDC* pDC) { CMymfc24BDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((Workspace Window"!Source_Control_Info(+IPI_mymfc24B5IPI_ ?mymfc24B ClassViewmymfc24B classesmymfc24B classesmymfc24B classes ResourceViewmymfc24B resourcesmymfc24B resourcesFileView"Workspace 'mymfc24B': 1 project(s)mymfc24B files Source Files Header Filesmymfc24B files"Workspace 'mymfc24B': 1 project(s)FileView drawing void CMymfc24BView::OnDraw(CDC* pDC) { CMymfc24BDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((Af:\mfcproject\mymfc24bmymfc24bmymfc24B classesmymfc24B classes ResourceViewmymfc24B resourcesmymfc24B resourcesFileView"Workspace 'mymfc24B': 1 project(s)mymfc24B files Source Files Header Filesmymfc24B files"Workspace 'mymfc24B': 1 project(s)FileView drawing void CMymfc24BView::OnDraw(CDC* pDC) { CMymfc24BDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((`mymfc24B - Win32 Debug mymfc24B.dspCProjectmymfc24B - Win32 Debugmymfc24B - Win32 Releasemymfc24B - Win32 DebugSSBR CTargetItemmymfc24B - Win32 DebugSSBR Source Files CProjGroupSSBRDJW Header Files CProjGroupSSBRDJWResource Files CProjGroupSSBRDJWdepCDependencyContainerSSBR basetsd.hCDependencyFileSSBRDJWDJWDJWment(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((`mfc24B.dspCProjectmymfc24B - Win32 Debugmymfc24B - Win32 Releasemymfc24B - Win32 DebugSSBR CTargetItemmymfc24B - Win32 DebugSSBR Source Files CProjGroupSSBRDJW Header Files CProjGroupSSBRDJWResource Files CProjGroupSSBRDJWdepCDependencyContainerSSBR basetsd.hCDependencyFileSSBRDJWDJWDJWment(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((ClassView Window"JDebuggerTDocuments ^ CClsFldSlobmymfc24B4B.dspCProjectmymfc24B - Win32 Debugmymfc24B - Win32 Releasemymfc24B - Win32 DebugSSBR CTargetItemmymfc24B - Win32 DebugSSBR Source Files CProjGroupSSBRDJW Header Files CProjGroupSSBRDJWResource Files CProjGroupSSBRDJWdepCDependencyContainerSSBR basetsd.hCDependencyFileSSBRDJWDJWDJWment(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H(( Watch1Watch2Watch3Watch4Win32 Debugmymfc24B - Win32 Releasemymfc24B - Win32 DebugSSBR CTargetItemmymfc24B - Win32 DebugSSBR Source Files CProjGroupSSBRDJW Header Files CProjGroupSSBRDJWResource Files CProjGroupSSBRDJWdepCDependencyContainerSSBR basetsd.hCDependencyFileSSBRDJWDJWDJWment(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView diagnostics #ifdef _DEBUG void CMymfc24BView::AssertValid() const { CView::AssertValid(); } void CMymfc24BView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CMymfc24BDoc* CMymfc24BView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMymfc24BDoc))); return (CMymfc24BDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((C/C++:CX,$V&CX,$TT0$TC0$,$Tc"C f",$W.\webbrowser2.h&{2AE27A3D-17F5-11D0-AF1B-00A0C90F9DE6},BWC/C++:CX,$V&CX,$TT0$TC0$,$Tc"C f",$---.\mymfc24BView.h&{2AE27A3D-17F5-11D0-AF1B-00A0C90F9DE6},C/C++:CX,$V&CX,$TT0$TC0$,$Tc"C f",$.\webbrowser2.cpp&{2AE27A3C-17F5-11D0-AF1B-00A0C90F9DE6},,:C/C++:CX,$V&CX,$TT0$TC0$,$Tc"C f",$ 66.\mymfc24BView.cpp&{2AE27A3C-17F5-11D0-AF1B-00A0C90F9DE6},/////////////////////////////////////////// // CMymfc24BView message handlers int CMymfc24BView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; DWORD dwStyle = WS_VISIBLE | WS_CHILD; if (m_search.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_SEARCH) == 0) { AfxMessageBox("Unable to create search control!\n"); return -1; } m_search.Navigate(s_engineYahoo, NULL, NULL, NULL, NULL); if (m_target.Create(NULL, dwStyle, CRect(0, 0, 100, 100), this, ID_BROWSER_TARGET) == 0) { AfxMessageBox("Unable to create target control!\n"); return -1; } m_target.GoHome(); // as defined in Internet Explorer 4 options return 0; } void CMymfc24BView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); CRect rectClient; GetClientRect(rectClient); CRect rectBrowse(rectClient); rectBrowse.right = rectClient.right  (txectSearch(rectClient); rectSearch.left = rectClient.right / 2; m_target.SetWidth(rectBrowse.right - rectBrowse.left); m_target.SetHeight(rectBrowse.bottom - rectBrowse.top); m_target.UpdateWindow(); m_search.SetLeft(rectSearch.left); m_search.SetWidth(rectSearch.right - rectSearch.left); m_search.SetHeight(rectSearch.bottom - rectSearch.top); m_search.UpdateWindow(); } void CMymfc24BView::OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel) { TRACE("CMymfc24BView::OnBeforeNavigateExplorer1 -- URL = %s\n", URL); if (!strnicmp(URL, s_engineYahoo, strlen(s_engineYahoo))) { return; } m_target.Navigate(URL, NULL, NULL, PostData, NULL); *Cancel = TRUE; } void CMymfc24BView::OnTitleChangeExplorer2(LPCTSTR Text) { // Careful! Event could fire before we're ready. CWnd* pWnd = AfxGetApp()->m_pMainWnd; if (pWnd != NULL) { if (::IsWindow(pWnd->m_hWnd)) { pWnd->SetWindowText(Text); } } } Y Y(tx9.j.+)HH&'567**0ZZ #HqQQXHYH&'(k.l.m.n.o.p.q.rrqqqq q q q q qqq  ZZZ;<=>II2)2 ..JHKH A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W- WH#$%EE 5 5!5"5#5$5%5&5'5(5)5*5+5,5-5.5/505152535450E1EZZ&-------Z'......#[$[ +E,E-EZU<,V#TQZS.E/E[j9Z:Z!E"E[[[%E&EZT*4( ,* .C.-(txZWZW Z 'E(E E E<= ----vv--E.F.G.H.I.J.K.L. --)E*E --..IHvZZZR  v v,,EEEE[k=5>5?5@5A5B5C5D5E5 ZcdEE <)*`' $%VVZQ[[ wp'w6Z7Z^Q_Q`QaQ 2Z3Z ?6( fQgQ0 ,,,,,,,DWEWFWGW....................www[[lQmQ[[*0(n-o- FE8(J1(#.{.I1(;< F D,31!0+.>-K+)Z(=>--sHtHuHvHxx55  [H\H]H((3x(tx(|.}.~.............."  .T.xx,---k(l(m(n(o(p(q(r(s(t(u(v(w(x(y(z( 1'V.W.X.Y.Z.[.\.].^._.((((((((((((((( 0I+3 !..r^RKK R)).......zz2W3W4W5W6W7W8W9W:W---LL2'&.c.9:;<=[Y----------TTTH(I(J(K(3456~}|}|T Te.f.g.h.i.j.k. | | .!.!\(](^(}}}R}} ;<ZZZHqrs8