-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathReflectionWnd.cpp
More file actions
39 lines (32 loc) · 1.46 KB
/
ReflectionWnd.cpp
File metadata and controls
39 lines (32 loc) · 1.46 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
//ReflectionWnd.cpp : Implementation of CReflectionWnd
//***************************************************************************//
// //
// This file was created using the CWindowImpl ATL Object Wizard //
// By Erik Thompson ?2000 //
// Version 1.1 //
// Email questions and comments to ErikT@RadBytes.com //
// //
//***************************************************************************//
#include "stdafx.h"
#include "ReflectionWnd.h"
/////////////////////////////////////////////////////////////////////////////
// CReflectionWnd
CReflectionWnd::CReflectionWnd()
{
}
CReflectionWnd::~CReflectionWnd()
{
if (IsWindow()) DestroyWindow();
}
const DWORD DEFAULT_TOOLBAR_STYLE =
/*Window styles:*/ WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE | WS_TABSTOP |
/*Toolbar styles:*/ TBSTYLE_TOOLTIPS | TBSTYLE_FLAT | TBSTYLE_TRANSPARENT | TBSTYLE_LIST | TBSTYLE_CUSTOMERASE |
TBSTYLE_WRAPABLE |
/*Common Control styles:*/ CCS_TOP | CCS_NODIVIDER | CCS_NOPARENTALIGN | CCS_NORESIZE;
LRESULT CReflectionWnd::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
RECT rect;
GetClientRect(&rect);
m_ToolbarWnd.Create(m_hWnd, rect, NULL, DEFAULT_TOOLBAR_STYLE);
return 0;
}