class LboxListbox : public LboxWintool

  コンストラクタ



  
// *********************************************************
// デフォルトコンストラクタ
// *********************************************************
LboxListbox::LboxListbox()
{
	LboxListbox::hFont = NULL;
	LboxListbox::bCreate = false;
	LboxWintool::hWndtool = NULL;
}
// *********************************************************
// 拡張コンストラクタ1
// *********************************************************
LboxListbox::LboxListbox( HWND hList )
{
	LboxListbox::hWnd = hList;
	LboxListbox::hFont = NULL;
	LboxListbox::bCreate = false;
	LboxWintool::hWndtool = hList;
}
// *********************************************************
// 拡張コンストラクタ2
// *********************************************************
LboxListbox::LboxListbox( HWND hOwner, int nID )
{
	LboxListbox::hWnd = CreateWindow(
		"listbox",
		NULL,
		WS_CHILD,
		0,0,0,0,
		hOwner,
		(HMENU)nID,
		LboxGetInstance( hOwner ),
		NULL
	);

	LboxListbox::hFont = NULL;
	LboxListbox::bCreate = true;
	LboxWintool::hWndtool = LboxListbox::hWnd;
}
// *********************************************************
// デストラクタ
// *********************************************************
LboxListbox::~LboxListbox()
{
	if ( LboxListbox::hFont != NULL ) {
		DeleteObject( LboxListbox::hFont );
	}

	if ( LboxListbox::bCreate ) {
		if ( LboxListbox::hWnd != NULL ) {
			DestroyWindow( LboxListbox::hWnd );
		}
	}
}
  










  infoboard   管理者用   
このエントリーをはてなブックマークに追加





フリーフォントWEBサービス
SQLの窓WEBサービス

SQLの窓フリーソフト

素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ