root/trunk/OutputBar.cpp

Revision 5, 2.2 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 // OutputBar.cpp : implementation file
2 //
3 /////////////////////////////////////////////////////////////////////////////
4
5 #include "StdAfx.h"
6 #include "Elephant.h"
7 #include "OutputBar.h"
8
9 #ifdef _DEBUG
10 #define new DEBUG_NEW
11 #undef THIS_FILE
12 static char THIS_FILE[] = __FILE__;
13 #endif
14
15 /////////////////////////////////////////////////////////////////////////////
16 // COutputBar
17
18 COutputBar::COutputBar()
19 {
20
21 }
22
23 COutputBar::~COutputBar()
24 {
25 }
26
27 IMPLEMENT_DYNAMIC(COutputBar, CXTDockWindow)
28
29 BEGIN_MESSAGE_MAP(COutputBar, CXTDockWindow)
30     //{{AFX_MSG_MAP(COutputBar)
31     ON_WM_CREATE()
32     //}}AFX_MSG_MAP
33 END_MESSAGE_MAP()
34
35 /////////////////////////////////////////////////////////////////////////////
36 // COutputBar message handlers
37
38 int COutputBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
39 {
40
41    
42     if (CXTDockWindow::OnCreate(lpCreateStruct) == -1)
43         return -1;
44
45     if (!m_flatTabCtrl.Create(WS_CHILD|WS_VISIBLE | FTS_XT_BOTTOM | TCS_VERTICAL | TCS_HOTTRACK ,
46         CRect(0,0,0,0), this, IDC_FLATTABCTRL))
47     {
48         TRACE0( "Failed to create flattab control\n" );
49         return -1;
50     }
51
52     DWORD dwStyle = WS_CHILD | WS_VSCROLL | WS_TABSTOP | LBS_NOINTEGRALHEIGHT;
53
54     if (!m_buildSheet.Create( IDD_BUILDOUTPUTBAR_DLG,this ) )
55     {
56        
57         TRACE0( "Failed to create sheet1.\n" );
58         return -1;
59     }
60
61    
62
63     if (!m_findSheet.Create( IDD_FINDOUTBAR_DLG,this ) )
64     {
65         TRACE0( "Failed to create sheet2.\n" );
66         return -1;
67     }
68
69
70     if ( !m_buildReport.Create(IDD_BUILDREPORT_DLG,this))
71     {
72         TRACE0("Failed creating build report");
73         return -1;
74    
75
76     }
77
78    
79     //  if ( !m_webSheet.Create(IDD_SCRIPTOUT_DLG,this) )
80     //  {
81     //      TRACE0("Failed creating webbrowser sheet");
82     //      return -1;
83 //  }
84
85 //  m_webSheet.m_webBrowser.Navigate("http://www.atari-soldiers.com/_dide.html",0,0,0,0);
86
87
88
89     m_flatTabCtrl.InsertItem(0, _T("Build Report"),&m_buildReport );
90     m_flatTabCtrl.InsertItem(1, _T("Build Output"),&m_buildSheet );
91     m_flatTabCtrl.InsertItem(2, _T("Find"), &m_findSheet);
92    
93     //m_flatTabCtrl.InsertItem(3, _T("Script Output"), &m_webSheet);
94
95     m_flatTabCtrl.SetCurSel(0);
96
97     SetXTBarStyle(CBRS_XT_DEFAULT|CBRS_XT_CLIENT_STATIC);
98
99     SetChild(&m_flatTabCtrl);
100
101    
102     //m_flatTabCtrl.SetTabShadowColor(RGB(0xff,0xff,0xFF));
103
104     return 0;
105 }
Note: See TracBrowser for help on using the browser.