|
|
// *********************************************************
// 拡張コンストラクタ
// *********************************************************
LboxProgressBar::LboxProgressBar( HWND hOwner, HWND hBase )
{
BaseEdit = NULL;
BaseEdit = new LboxEdit( hBase );
BaseEdit->Hide( );
BaseEdit->Disable();
RECT rt;
POINT pt;
GetWindowRect( hBase, &rt );
pt.x = rt.left;
pt.y = rt.top;
ScreenToClient( hOwner, &pt );
int nW,nH;
nW = BaseEdit->Width();
nH = BaseEdit->Height();
this->hWnd =
CreateWindowEx(
0,
PROGRESS_CLASS,
(LPSTR)NULL,
WS_CHILD |
WS_VISIBLE,
pt.x, pt.y, nW, nH,
hOwner,
NULL,
LboxGetInstance( hOwner ),
NULL
);
}
LboxProgressBar::LboxProgressBar()
{
BaseEdit = NULL;
this->hWnd = NULL;
}
LboxProgressBar::~LboxProgressBar()
{
if ( BaseEdit != NULL ) {
delete BaseEdit;
}
}
| |
|
|
|