|
// *********************************************************
// イメージ追加
// 戻り値 : 無し
// *********************************************************
void LboxImagelist::Add( HWND hWnd, int nID, int r, int g, int b )
{
if ( LboxImagelist::hImgList == NULL ) {
return;
}
if ( (LboxImagelist::bSystem) ) {
return;
}
HBITMAP hBitmap;
hBitmap = LoadBitmap(
LboxGetInstance( hWnd ),
MAKEINTRESOURCE( nID )
);
if ( hBitmap == NULL ) {
return;
}
ImageList_AddMasked(
LboxImagelist::hImgList,
hBitmap,
RGB(r,g,b)
);
DeleteObject( hBitmap );
}
| |