Пример #1
0
LONG MasterListDialogBar::OnInitDialog ( UINT wParam, LONG lParam)
{
	BOOL bRet = HandleInitDialog(wParam, lParam);
	if (!UpdateData(FALSE))
	{

	}
	return bRet;
}
Пример #2
0
// CpropertyDlg 消息处理程序
LONG CpropertyDlg::OnInitDialog ( UINT wParam, LONG lParam)
{
 
    // <-- 加上以下几行. -->
    BOOL bRet = HandleInitDialog(wParam, lParam);
    if (!UpdateData(FALSE))
    {
        TRACE0("Warning: UpdateData failed during dialog init.\n");
    }
	classInfoInit();
     return bRet;
}
Пример #3
0
 LONG CtoolDlg::OnInitDialog(UINT wParam, LONG lParam){
              BOOL bRet = HandleInitDialog(wParam, lParam);
              if(!UpdateData(FALSE)){
                     TRACE0("Warning, Unalbe to init update.\n");
              }
              // Add Code here
			 CRect rc;
			 GetClientRect(rc);
			 rc.top+=150;
			// rc.bottom-=700;
			 m_classTree.Create( WS_CHILD|TVS_HASLINES|TVS_LINESATROOT|TVS_HASBUTTONS|TVS_SHOWSELALWAYS|WS_VISIBLE,rc,this,IDC_TOOLTREE);
              return bRet;
}
Пример #4
0
LRESULT CParticleToolPal::OnInitDialog(WPARAM wParam, LPARAM lParam)
{
	BOOL bRet = HandleInitDialog(wParam, lParam);
	m_ParticleName.Init( _T("CParticleToolPal_Temp") );
	m_ParticleVisible = false;
    UpdateData(FALSE);
	m_ctrlShowToggleButton.SetCheck( BST_UNCHECKED );

	//Create our editing dialogs
//	m_PropertiesDlg.Create(IDD_PARTICLE_PROPERTIES_DIALOG, AfxGetApp()->GetMainWnd() );	
//	m_PropertiesDlg.SetParticleName( &m_ParticleName );
//	m_PropertiesDlg.Initialize();
	return bRet;
}
Пример #5
0
// CSliceDlgBar message handlers
LONG CSliceDlgBar::OnInitDialog ( UINT wParam, LONG lParam)
{
	if (!UpdateData(FALSE))
	{
		TRACE0("Warning: UpdateData failed during dialog init.\n");
	}
	
	//Init value for control
	m_nLayoutMode = 1;
	m_bLine = TRUE;
	m_bInfo = FALSE;
	UpdateData(FALSE);
	BOOL bRet = HandleInitDialog(wParam, lParam);
	return bRet;

}
LRESULT CWorldEventToolPal::OnInitDialog(WPARAM wParam, LPARAM lParam)
{
	BOOL bRet = HandleInitDialog(wParam, lParam);

	UpdateData(FALSE);

	m_Name.SetWindowText( _T("<Name>") );
	m_TriggerName.SetWindowText( _T("<Trigger Name>") );
	m_EntityName.SetWindowText( _T("<Entity Name>") );
	m_EntityType.SetWindowText( _T("<Entity Type>") );
	m_EventName.SetWindowText( _T("<Event Name>") );
	m_EventParam.SetWindowText( _T("<Event Params>") );
	m_Create.SetButtonStyle( BS_PUSHBUTTON, true );
	 
	return bRet;
}
Пример #7
0
LONG CDLupToDistancedlg::OnInitDialog(UINT wParam, LONG lParam)
{
	BOOL bRet = HandleInitDialog(wParam, lParam);

	if (!UpdateData(FALSE))

	{
		TRACE0("Warning: UpdateData failed during dialog init.\n");
	}
	CComboBox *sta=(CComboBox*)GetDlgItem(IDC_STATUS);
	sta->InsertString(0,_T("草稿"));
	sta->InsertString(1,_T("发布"));
	sta->SetCurSel(0);

	return bRet;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}