|
// WebWin32Lib.cpp : Implementation of CWebWin32Lib
#include "stdafx.h"
#include "WebWin32Lib.h"
#include "atlsplit.h"
// CWebWin32Lib
STDMETHODIMP CWebWin32Lib::MyMessageBox(BSTR Text, BSTR Title, LONG* Result)
{
*Result= MessageBox( 0, _bstr_t( Text ), _bstr_t( Title ),MB_ICONEXCLAMATION );
return S_OK;
}
STDMETHODIMP CWebWin32Lib::HideTree(void)
{
ATLASSERT( m_pChildFrame != NULL );
m_pChildFrame->m_splitter.SetSinglePaneMode( SPLIT_PANE_RIGHT ) ;
return S_OK;
}
STDMETHODIMP CWebWin32Lib::ShowTree(void)
{
ATLASSERT( m_pChildFrame != NULL );
m_pChildFrame->m_splitter.SetSinglePaneMode();
return S_OK;
}
STDMETHODIMP CWebWin32Lib::SetChildFrame(LONG pChildFrame)
{
m_pChildFrame = ( CChildFrame * ) pChildFrame;
return S_OK;
}
STDMETHODIMP CWebWin32Lib::AddChildToTree(BSTR childText)
{
ATLASSERT( m_pChildFrame != NULL );
CTreeItem temp = m_pChildFrame->m_tree.m_TreeView.GetSelectedItem();
temp.AddTail( _bstr_t( childText ), -1 );
m_pChildFrame->m_tree.RedrawWindow();
temp.EnsureVisible();
return S_OK;
}
STDMETHODIMP CWebWin32Lib::put_StatusBarText(BSTR Text)
{
ATLASSERT( m_pChildFrame != NULL );
CWindow wnd( m_pChildFrame->GetDlgItem( ATL_IDW_STATUS_BAR ) );
wnd.SetWindowText( _bstr_t( Text ) );
return S_OK;
}
STDMETHODIMP CWebWin32Lib::FormSubmit(BSTR FormName)
{
ATLASSERT( m_pChildFrame != NULL );
m_pChildFrame->m_view.SendMessage( WM_USER + 1, 0, ( LPARAM ) new _bstr_t( FormName ) );
return S_OK;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.