-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathWatchBar.cpp
More file actions
executable file
·55 lines (39 loc) · 1.05 KB
/
WatchBar.cpp
File metadata and controls
executable file
·55 lines (39 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// mybar.cpp : implementation file
//
#include "stdafx.h"
#include "WatchBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWatchBar
CWatchBar::CWatchBar()
{
}
CWatchBar::~CWatchBar()
{
}
BEGIN_MESSAGE_MAP(CWatchBar, CDynamicHelp)
//{{AFX_MSG_MAP(CWatchBar)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CWatchBar message handlers
int CWatchBar::OnCreate(LPCREATESTRUCT create_struct)
{
if (CDynamicHelp::OnCreate(create_struct) == -1)
return -1;
// SetSCBStyle(GetSCBStyle() | SCBS_SIZECHILD);
if (!child_wnd_.Create(WS_CHILD|WS_VISIBLE|ES_MULTILINE|ES_WANTRETURN|ES_AUTOVSCROLL,
CRect(0,0,0,0), this, 123))
return -1;
child_wnd_.ModifyStyleEx(0, WS_EX_CLIENTEDGE);
//if (!font_.CreateStockObject(DEFAULT_GUI_FONT))
// if (!font_.CreatePointFont(80, "MS Sans Serif"))
// return -1;
//child_wnd_.SetFont(&font_);
return 0;
}