コード例 #1
0
ファイル: urlmonui.cpp プロジェクト: NemProjects/WLAN
/////////////////////////////////////////////////////////////////////////////
// LaunchUrlmonDialog
/////////////////////////////////////////////////////////////////////////////
int LaunchUrlmonDialog
(
    IN HWND     hWnd,
    IN DWORD    dwAction,
    IN DWORD    dwPermissions,
    IN LPCTSTR  lpszText
)
{
    int iRet = ERROR_CALL_NOT_IMPLEMENTED;

    UMDLGPARAMS umparams;
    
    umparams.eDlgType   = GetDialogType(dwAction, dwPermissions);
    umparams.pszMsg     = lpszText;

    iRet = DialogBoxIndirectParamW(HINST_RESDLL,
                                   (LPCDLGTEMPLATEW)LoadResource(HINST_RESDLL,
                                                    FindResourceW(HINST_RESDLL,
                                                        MAKEINTRESOURCEW(IDD_URLMON),
                                                        RT_DIALOG)),
                                   SHGetLastActiveWindow(hWnd), 
                                   (DLGPROC)UrlmonDialogProc, 
                                   (LPARAM)&umparams);

    return iRet;
}
コード例 #2
0
ファイル: BasePAN.cpp プロジェクト: PurpleYouko/Wibble_Wibble
void CBasePAN::Update( POINT ptMouse )
{
	CTDialog::Update( ptMouse );

	///이하 툴팁 표시
	CTDialog* pDlg = CTDialog::GetProcessMouseOverDialog();
	if( pDlg && pDlg != this )
			return ;

	WINCTRL_LIST_ITOR iter;
	CWinCtrl*	pCtrl;


	for( iter = m_listChild.begin(); iter != m_listChild.end(); ++iter)
	{
		pCtrl = *iter;
		if( pCtrl->GetControlType() == CTRL_IMAGE )
			continue;

		if( pCtrl->IsInside(ptMouse.x, ptMouse.y ) )
		{
			CToolTipMgr::GetInstance().RegUIInfo( ptMouse.x, ptMouse.y, GetDialogType(), pCtrl->GetControlID());
			break;
		}
	}
}
コード例 #3
0
bool CSkillDLG::On_LButtonUP( unsigned iProcID , WPARAM wParam, LPARAM lParam )
{
    switch( iProcID )
    {
    case IID_BTN_ICONIZE:
        g_itMGR.AddDialogIcon( 	GetDialogType() );
        break;
    case IID_BTN_CLOSE:
        Hide();
        break;

    default:
        break;
    }

    return true;
}
コード例 #4
0
void CCreateAvata::FailCreateAvata()
{
	g_EUILobby.ShowMsgBox(STR_FAIL_MAKE_NEW_CHARACTER,CTMsgBox::BT_OK ,true ,GetDialogType());
}
コード例 #5
0
void CCreateAvata::OnLButtonUp( unsigned iProcID )
{
	switch( iProcID )
	{
	case IID_BTN_OK:
		{
			int iSex		= atoi( m_mapSex[m_iSelectedSex].m_strValue.c_str() );
			int iBoneStone	= atoi( m_mapBirthStone[m_iSelectedBirthStone].m_strValue.c_str() );
			int iHair		= atoi( m_mapHair[m_iSelectedHair].m_strValue.c_str() );
			int iFace		= atoi( m_mapFace[m_iSelectedFace].m_strValue.c_str() );
			int iStartPos   = atoi( m_mapStartPos[m_iSelectedStartPos].m_strValue.c_str() );

			
			char szName[255] ={0};

			CWinCtrl* pCtrl = Find( IID_EDITBOX );
			if( pCtrl == NULL || pCtrl->GetControlType() != CTRL_EDITBOX )
			{
				LogString (LOG_NORMAL, "Not Found EditBox(ID-%d) in CCreateAvata::OnLButtonUp\n",IID_EDITBOX );
				return ;
			}
			CTEditBox* pEditBox = ( CTEditBox* ) pCtrl;

			strcpy( szName, pEditBox->get_text() );


			if( CFilterWord::GetInstance().IsValidName( szName) )
			{
				CreateAvata( szName, 0, iSex, iBoneStone, iHair, iFace, iStartPos );
			}
			else
			{
				g_EUILobby.ShowMsgBox(STR_INVALID_CHARACTER_NAME,CTMsgBox::BT_OK ,true ,GetDialogType() );
				pEditBox->clear_text();
			}
		
		}
		break;
	case IID_BTN_CANCEL:
		CGame::GetInstance().ChangeState( CGame::GS_SELECTAVATAR );

//		g_EUILobby.CreateServerListDlg();
		break;
	case IID_BTN_LEFT_SEX:
		--m_iSelectedSex;
		if( m_iSelectedSex < 0 )
			m_iSelectedSex = m_mapSex.size() - 1;
		CSystemProcScript::GetSingleton().CallLuaFunction( "OnChangeSex", ZZ_PARAM_INT, 
			atoi(m_mapSex[m_iSelectedSex].m_strValue.c_str()), ZZ_PARAM_END );
		break;
	case IID_BTN_LEFT_FACE:
		--m_iSelectedFace;
		if( m_iSelectedFace < 0 )
			m_iSelectedFace = m_mapFace.size() - 1;

		CSystemProcScript::GetSingleton().CallLuaFunction( "OnChangeFace", ZZ_PARAM_INT, 
			atoi( m_mapFace[m_iSelectedFace].m_strValue.c_str()), ZZ_PARAM_END );
		break;
	case IID_BTN_LEFT_HAIR:
		--m_iSelectedHair;
		if( m_iSelectedHair < 0 )
			m_iSelectedHair = m_mapHair.size() - 1 ;

		CSystemProcScript::GetSingleton().CallLuaFunction( "OnChangeHair", ZZ_PARAM_INT, 
			atoi( m_mapHair[m_iSelectedHair].m_strValue.c_str()), ZZ_PARAM_END );
		break;
	case IID_BTN_LEFT_STARTPOS:
		--m_iSelectedStartPos;
		if( m_iSelectedStartPos < 0 )
			m_iSelectedStartPos = m_mapStartPos.size() - 1;
		break;
	case IID_BTN_LEFT_BIRTHSTONE:
		--m_iSelectedBirthStone;
		if( m_iSelectedBirthStone < 0 )
			m_iSelectedBirthStone = m_mapBirthStone.size() - 1;
		break;
	case IID_BTN_RIGHT_SEX:
		++m_iSelectedSex;
		if( m_iSelectedSex >= m_mapSex.size() )
			m_iSelectedSex = 0;

		CSystemProcScript::GetSingleton().CallLuaFunction( "OnChangeSex", ZZ_PARAM_INT, 
			atoi(m_mapSex[m_iSelectedSex].m_strValue.c_str()), ZZ_PARAM_END );

		break;
	case IID_BTN_RIGHT_FACE:
		++m_iSelectedFace;
		if( m_iSelectedFace >= m_mapFace.size() )
			m_iSelectedFace = 0;

		CSystemProcScript::GetSingleton().CallLuaFunction( "OnChangeFace", ZZ_PARAM_INT, 
			atoi( m_mapFace[m_iSelectedFace].m_strValue.c_str()), ZZ_PARAM_END );

		break;
	case IID_BTN_RIGHT_HAIR:
		++m_iSelectedHair;
		if( m_iSelectedHair >= m_mapHair.size() )
			m_iSelectedHair = 0;

		CSystemProcScript::GetSingleton().CallLuaFunction( "OnChangeHair", ZZ_PARAM_INT, 
			atoi( m_mapHair[m_iSelectedHair].m_strValue.c_str()), ZZ_PARAM_END );

		break;
	case IID_BTN_RIGHT_STARTPOS:
		++m_iSelectedStartPos;
		if( m_iSelectedStartPos >= m_mapStartPos.size() )
			m_iSelectedStartPos = 0;
		break;
	case IID_BTN_RIGHT_BIRTHSTONE:
		++m_iSelectedBirthStone;
		if( m_iSelectedBirthStone >= m_mapBirthStone.size() )
			m_iSelectedBirthStone = 0;
		break;
	default:
		break;
	}
}
コード例 #6
0
void CSeparateDlg::SetInterfacePos_After()
{
	POINT pt;
	int iGapY = 0;
	CSlot Slot;
	CWinCtrl * pCtrl = NULL;
	CWinCtrl * pCtrl2 = NULL;

	if( pCtrl = Find("ITEM_SLOT_00") )
	{
		pt = pCtrl->GetOffset();		
		m_MaterialItemSlot.SetOffset( pt );
		m_MaterialItemSlot.SetParent( GetDialogType() );
		m_MaterialItemSlot.SetDragAvailable();
		m_MaterialItemSlot.SetDragItem( m_pDragItem );
	}

	
	
	if( pCtrl = Find("ITEM_SLOT_01") )
	{
		pt = pCtrl->GetOffset();

		if( pCtrl2 = Find("ITEM_SLOT_02") )
		{
			iGapY = pCtrl2->GetOffset().y - pCtrl->GetOffset().y;
		}
	}
	
	for( int i = 0; i < 4; ++i )
	{
		Slot.SetOffset( pt );		
		Slot.SetParent( GetDialogType() );

		m_OutputItemSlots.push_back( Slot );
		pt.y += iGapY;
	}


	if( pCtrl = Find("DEST_ITEM") )
	{
		((CTImage*)pCtrl)->SetAlign(DT_CENTER | DT_VCENTER);
		((CTImage*)pCtrl)->SetText(LIST_STRING(788));//대상 아이템
	}
	if( pCtrl = Find("MATERIAL_NAME") )
	{
		((CTImage*)pCtrl)->SetAlign(DT_CENTER | DT_VCENTER);
		((CTImage*)pCtrl)->SetText(LIST_STRING(789));//생성 재료명
	}
	if( pCtrl = Find("NUM") )
	{
		((CTImage*)pCtrl)->SetAlign(DT_CENTER | DT_VCENTER);
		((CTImage*)pCtrl)->SetText(LIST_STRING(790));//개수
	}
	
	if(pCtrl=Find(IID_BTN_START))
	{
		//분리시작 893
		pCtrl->SetText( LIST_STRING(893) );
	}

	m_pCaption->SetString(LIST_STRING(793));//분리

	MoveWindow(GetPosition());
}