-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCandidatesFrame.cpp
More file actions
54 lines (41 loc) · 1.37 KB
/
CandidatesFrame.cpp
File metadata and controls
54 lines (41 loc) · 1.37 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
// CandidatesFrame.cpp : implementation file
//
#include "stdafx.h"
#include "fireplus.h"
#include "CandidatesFrame.h"
// CCandidatesFrame
IMPLEMENT_DYNCREATE(CCandidatesFrame, CMDIChildWnd)
CCandidatesFrame::CCandidatesFrame()
{
m_pDB = NULL;
}
CCandidatesFrame::~CCandidatesFrame()
{
}
BEGIN_MESSAGE_MAP(CCandidatesFrame, CMDIChildWnd)
END_MESSAGE_MAP()
// CCandidatesFrame message handlers
BOOL CCandidatesFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_WEATHERVIEW_TMPL1))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
if (!m_candidatesBar.Create(this, IDD_DIALOGBAR_CANDIDATES, CBRS_TOP | CBRS_GRIPPER , IDD_DIALOGBAR_CANDIDATES))
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
m_candidatesBar.m_pDoc = (CCandidatesDoc *)pContext->m_pCurrentDoc;
m_candidatesBar.EnableDocking(CBRS_ALIGN_TOP);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_candidatesBar);
m_candidatesBar.UpdateData(FALSE);
return CMDIChildWnd::OnCreateClient(lpcs, pContext);
}