|
|
// *********************************************************
// 拡張コンストラクタ
// *********************************************************
LboxCombobox::LboxCombobox( HWND hTarget )
{
this->hWnd = hTarget;
List = new LboxListbox( GetParent( hTarget ), 0 );
LboxCombobox::bCreate = false;
}
LboxCombobox::LboxCombobox( HWND hOwner, int nID )
{
this->hWnd = CreateWindow(
"combobox",
NULL,
WS_CHILD | CBS_DROPDOWNLIST,
0,0,0,0,
hOwner,
(HMENU)nID,
LboxGetInstance( hOwner ),
NULL
);
List = new LboxListbox( hOwner, 0 );
LboxCombobox::bCreate = true;
}
// *********************************************************
// デフォルトコンストラクタ
// *********************************************************
LboxCombobox::LboxCombobox()
{
LboxCombobox::bCreate = false;
List = NULL;
}
// *********************************************************
// デストラクタ
// *********************************************************
LboxCombobox::~LboxCombobox()
{
delete this->List;
if ( LboxCombobox::bCreate ) {
if ( this->hWnd != NULL ) {
DestroyWindow( this->hWnd );
this->hWnd = NULL;
}
}
}
| |
|
|
|