| 1 |
// TabDockWnd.cpp : implementation file |
|---|
| 2 |
// |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
#include "StdAfx.h" |
|---|
| 6 |
#include "Elephant.h" |
|---|
| 7 |
#include "OutputBarTab.h" |
|---|
| 8 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 9 |
// COutputBarTab |
|---|
| 10 |
|
|---|
| 11 |
COutputBarTab::COutputBarTab() |
|---|
| 12 |
{ |
|---|
| 13 |
} |
|---|
| 14 |
|
|---|
| 15 |
COutputBarTab::~COutputBarTab() |
|---|
| 16 |
{ |
|---|
| 17 |
} |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
BEGIN_MESSAGE_MAP(COutputBarTab, CXTTabCtrlBar) |
|---|
| 22 |
//{{AFX_MSG_MAP(COutputBarTab) |
|---|
| 23 |
ON_WM_CREATE() |
|---|
| 24 |
//}}AFX_MSG_MAP |
|---|
| 25 |
END_MESSAGE_MAP() |
|---|
| 26 |
|
|---|
| 27 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 28 |
// COutputBarTab message handlers |
|---|
| 29 |
|
|---|
| 30 |
int COutputBarTab::OnCreate(LPCREATESTRUCT lpCreateStruct) |
|---|
| 31 |
{ |
|---|
| 32 |
if (CXTTabCtrlBar::OnCreate(lpCreateStruct) == -1) |
|---|
| 33 |
return -1; |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
if (!m_imageList.Create(IDB_IMGLIST_TAB, 16, 1, RGB(0x00,0xff,0x00))) |
|---|
| 38 |
{ |
|---|
| 39 |
TRACE0("Failed to create image list.\n"); |
|---|
| 40 |
return -1; |
|---|
| 41 |
} |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
DWORD dwStyle = WS_CHILD | WS_VSCROLL | WS_TABSTOP | LBS_NOINTEGRALHEIGHT; |
|---|
| 45 |
|
|---|
| 46 |
if (!m_buildSheet.Create( IDD_BUILDOUTPUTBAR_DLG,this ) ) |
|---|
| 47 |
{ |
|---|
| 48 |
|
|---|
| 49 |
TRACE0( "Failed to create sheet1.\n" ); |
|---|
| 50 |
return -1; |
|---|
| 51 |
} |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
if (!m_findSheet.Create( IDD_FINDOUTBAR_DLG,this ) ) |
|---|
| 56 |
{ |
|---|
| 57 |
TRACE0( "Failed to create sheet2.\n" ); |
|---|
| 58 |
return -1; |
|---|
| 59 |
} |
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
if ( !m_buildReport.Create(IDD_BUILDREPORT_DLG,this)) |
|---|
| 63 |
{ |
|---|
| 64 |
TRACE0("Failed creating build report"); |
|---|
| 65 |
return -1; |
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
} |
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
AddControl( _T( "Build Report" ), &m_buildReport, 1 ); |
|---|
| 73 |
|
|---|
| 74 |
AddControl( _T( "Verbatim Output" ), &m_buildSheet, 2); |
|---|
| 75 |
AddControl( _T( "Find Results" ), &m_findSheet, 3 ); |
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 |
|
|---|
| 80 |
//SetTabImageList(&m_imageList); |
|---|
| 81 |
|
|---|
| 82 |
SetActiveView(0); |
|---|
| 83 |
|
|---|
| 84 |
return 0; |
|---|
| 85 |
} |
|---|