示例#1
0
BOOL CBalloonTip::Initialization()
{
	SetSkinImage(m_nBK);
	SetSkinCorner(CRect(5,30,5,5));
	InitIconImage();
	InitControls();
	SetTimer(GetHWND(),ID_TIMER_START_SHOW,ID_ELAPSE_SHOW,NULL);
	if (m_nTitleID!=0)
	{
		SetTitleIcon(m_nTitleID);
	}
	SetForegroundWindow(GetHWND());
	return TRUE;
}
示例#2
0
void CMiniMapDlg::Linking()
{
	memset(m_pIconImage,0,sizeof(cImage*)*eMNMICON_MAX);
	InitIconImage();
	m_pMapName	= (cStatic*)GetWindowForID(MNM_MAPNAME);
	m_pPosXY	= (cStatic*)GetWindowForID(MNM_POSXY);

	m_pVideoCaptureStartBtn = (cButton*)GetWindowForID( MNM_VIDEO_REC_START_BTN );
	m_pVideoCaptureStopBtn  = (cButton*)GetWindowForID( MNM_VIDEO_REC_STOP_BTN );


	// 091214 ShinJS --- 녹화 상태에 맞게 버튼을 설정한다.
	ShowVideoCaptureStartBtn( ! VIDEOCAPTUREMGR->IsCapturing() );


	// 100104 ShinJS --- PC방 Mall 버튼
	cWindow* pMallBtn = GetWindowForID( MNM_PCROOM_MALL_BTN );
	if( pMallBtn )
		pMallBtn->SetActive( TRUE );

	// 100105 ShinJS --- PC방 아이템 지급 버튼
	cWindow* pProvideItemBtn = GetWindowForID( MNM_PCROOM_PROVIDE_ITEM_BTN );
	if( pProvideItemBtn )
		pProvideItemBtn->SetActive( FALSE );

	cPushupButton* pLevelUpBTN	=	(cPushupButton*)GetWindowForID( MNM_LEVELUP_BTN );
	if( pLevelUpBTN )
	{
		pLevelUpBTN->SetActive( FALSE );
		m_pLevelUpBTN	=	pLevelUpBTN;
	}

	cWindow* pLevelUpOffBTN =	GetWindowForID( MNM_LEVELUP_OFF_BTN );
	if( pLevelUpOffBTN )
	{
		pLevelUpOffBTN->SetActive( TRUE );
		pLevelUpOffBTN->SetDisable( TRUE );
	}

	// 채널 변경...
	cChannelComboBox* pComboBox	=	(cChannelComboBox*)GetWindowForID( MNM_CHANNEL_COMBOBOX );
	if( pComboBox )
	{
		m_pChannelComboBox	=	pComboBox;
		m_pChannelComboBox->LoadChannelInfo();
	}
}