-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDialogBasedItem.cpp
More file actions
38 lines (26 loc) · 918 Bytes
/
DialogBasedItem.cpp
File metadata and controls
38 lines (26 loc) · 918 Bytes
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
// DialogBasedItem.cpp: implementation of the CDialogBasedItem class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CPUBench2004.h"
#include "DialogBasedItem.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CDialogBasedItem::CDialogBasedItem()
{
this->bRequireBk=false;
}
CDialogBasedItem::~CDialogBasedItem()
{
}
void CDialogBasedItem::DrawContent(CDC* pDC){
//non si usa il DC - il controllo è legato alla dialog
::SetWindowPos(m_hWnd, NULL,itemRect.left, itemRect.top, itemRect.Width()+1, itemRect.Height(),SWP_NOZORDER);
if (!::IsWindowVisible(m_hWnd)) ::ShowWindow(m_hWnd, SW_SHOW);
}