Example #1
0
BOOL CMDecodePage::OnInitDialog() 
{
	CDialog::OnInitDialog();

	m_vlist.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
	m_vlist.EnableToolTips(TRUE);
	InitListCtrl(&m_vlist);
	FillListCtrl(&m_vlist);
	
	m_alist.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
	m_alist.EnableToolTips(TRUE);
	InitListCtrl(&m_alist);
	
	m_avlist.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
	m_avlist.EnableToolTips(TRUE);
	InitListCtrlAV(&m_avlist);
	FillListCtrlAV(&m_avlist);

	for(int i = 0; i < m_str_codecs.GetCount(); i++)
		m_codecs.AddString(m_str_codecs[i]);
	m_codecs.SetCurSel(inner);
	
	InitFromConfig();
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Example #2
0
BOOL  CBlockAESDialogChushi::OnInitDialog()
{
	CMyDialog::OnInitDialog();
	InitListCtrl(m_ctrlInput);
	InitListCtrl(m_ctrlWi);
	InitListCtrl(m_ctrlOutput);
	UpdateListCtrl(m_ctrlInput,m_strInput);
	UpdateListCtrl(m_ctrlWi,m_strWi);
	UpdateListCtrl(m_ctrlOutput,m_strOutput);

	return TRUE;
}
Example #3
0
void CMDIView::OnInitialUpdate() 
{
	CView::OnInitialUpdate();
	InitListCtrl(m_pList);
	FillListCtrl(m_pList);
	UpdateWindow();
}
BOOL CDlgTBTSameRunway::OnInitDialog()
{
	CPropertyPage::OnInitDialog();

	m_pClsNone->ReadData();
	m_pClsWakeVortexWightBased->ReadData();
	m_pClsWingspanBased->ReadData();
	m_pClsSurfaceBearingWeightBased->ReadData();
	m_pClsApproachSpeedBased->ReadData();

	InitListCtrl();
	InitComboBox();
	InitEditBox();


	((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN1))->SetRange(0,1000);
	((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN2))->SetRange(0,1000);
	((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN3))->SetRange(0,1000);
	((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN4))->SetRange(0,1000);
	((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN5))->SetRange(0,1000);

	ResetListCtrl();

	return TRUE;
}
BOOL CDlgDepartureSlotSpec::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();
	
	CRect rectFltToolbar;
	GetDlgItem(IDC_STATIC_TOOLBAR)->GetWindowRect(&rectFltToolbar);
	ScreenToClient(&rectFltToolbar);
	m_wndFltToolbar.MoveWindow(&rectFltToolbar, true);
	m_wndFltToolbar.GetToolBarCtrl().EnableButton(ID_DEPSLOT_ADD, TRUE);
	m_wndFltToolbar.GetToolBarCtrl().HideButton(ID_DEPSLOT_EDIT, TRUE);
	m_wndFltToolbar.GetToolBarCtrl().EnableButton(ID_DEPSLOT_DEL, TRUE);

	SetResize(m_wndFltToolbar.GetDlgCtrlID(), SZ_TOP_LEFT, SZ_TOP_LEFT);
	SetResize(IDC_LISTBOX, SZ_TOP_LEFT , SZ_BOTTOM_RIGHT);
	SetResize(IDSAVE, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);

	InitListCtrl();
	GetDlgItem(IDSAVE)->EnableWindow(FALSE);

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);

	return TRUE;
}
BOOL CDlgItinerantTraffic::OnInitDialog()
{
	CXTResizeDialog::OnInitDialog();

	InitToolBar();
	InitListCtrl();
	GetAllStand();
	m_pItinerantFlightList->SetAirportDB(m_pInputAirside->m_pAirportDB);
	m_pItinerantFlightSchedule->SetAirportDB(m_pInputAirside->m_pAirportDB);

	m_pItinerantFlightList->ReadData(m_nProjID);
	m_pItinerantFlightSchedule->ReadData(m_nProjID);

	SetListContent();
	GetDlgItem(IDC_SAVE)->EnableWindow(FALSE);

	SetResize(IDC_STATIC_AREA, SZ_TOP_LEFT , SZ_BOTTOM_RIGHT);
	SetResize(IDC_LIST_CONTENTS, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);
	SetResize(IDC_VIEW_SCHEDULE, SZ_BOTTOM_LEFT , SZ_BOTTOM_LEFT);
	SetResize(IDC_UPDATE_SCHEDULE,SZ_BOTTOM_LEFT,SZ_BOTTOM_LEFT);

	SetResize(IDC_SAVE, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
	SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);	

	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),TRUE);
	SetIcon(LoadIcon( AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME) ),FALSE);

	return TRUE;
}
Example #7
0
BOOL CMyPropertyPage1::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();
	m_List.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
	InitListCtrl(&m_List);
	FillListCtrl(&m_List);
	return TRUE;
}
LRESULT CMDIChildWindows::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	DoDataExchange();
	DlgResize_Init();

	InitListCtrl();
	DataToListCtrl();

	return 1;  // Let the system set the focus
}
BOOL CSmsExtractNumDlg::OnInitDialog() 
{
	CBaseDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
    m_bFirst = TRUE;

//	SetSkin(g_SetData.Setup_nSkinStyle);
    
    InitListCtrl();    
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Example #10
0
BOOL CStroeSet::OnInitDialog()
{
	CDialog::OnInitDialog();
	m_iOptFlag = 0;		//读取
	InitKeyMap();
	InitParams();
	InitListCtrl();		//初始化配置
	InitSqlCombo();
	GetDlgItem(IDC_COMBO_OPTTYPE)->MoveWindow(80,15,150,300);
	m_iOptFlag = 0;
	m_ComboSql.SetCurSel(0);
	InitSqlString();
	return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCallHistoryDlg message handlers
BOOL CCallHistoryDlg::OnInitDialog() 
{
    CBaseDialog::OnInitDialog();
    m_bFirst = TRUE;

//	SetSkin(g_SetData.Setup_nSkinStyle);

    UpdateData(FALSE);
    InitTabCtrl();
    InitListCtrl();
    InitDspIndexArr();
    DispCallHistory();
    return TRUE;
}
Example #12
0
BOOL CIPFindDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to system menu.

	// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon

	// TODO: Add extra initialization here
	InitAdapter();
#if defined(_DEBUG)
	SetDlgItemText(IDC_EDIT_MAC, _T("08:20:3e:9a:5f:17"));
#endif

	InitListCtrl();
	GetDlgItem(IDC_BUTTON_START)->EnableWindow(true);

	return TRUE;  // return TRUE  unless you set the focus to a control
}
Example #13
0
// CTabpageBorrow message handlers
BOOL CTabpageBorrow::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	InitControlPtrs();
	InitListCtrl();

	COLORREF bkColor = RGB(41, 22, 111);
	COLORREF fontColor = RGB(255, 255, 255);
	mBlueBrush.CreateSolidBrush(bkColor);
	mGroupboxBaseinfo.SetBackgroundColor(bkColor, bkColor);
	mGroupboxBaseinfo.SetCatptionTextColor(fontColor);

	mGroupboxGuninfo.SetBackgroundColor(bkColor, bkColor);
	mGroupboxGuninfo.SetCatptionTextColor(fontColor);
	mGroupboxBorrowinfo.SetBackgroundColor(bkColor, bkColor);
	mGroupboxBorrowinfo.SetCatptionTextColor(fontColor);
	mGroupboxDoer.SetBackgroundColor(bkColor, bkColor);
	mGroupboxDoer.SetCatptionTextColor(fontColor);

	GetDlgItem(IDC_RADIO_PASS)->Invalidate(FALSE);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
Example #14
0
BOOL CTabpageLend::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	InitListCtrl();

	COLORREF bkColor = RGB(41, 22, 111);
	COLORREF fontColor = RGB(255, 255, 255);

	mBlueBrush.CreateSolidBrush(bkColor);

	mGroupboxBaseinfo.SetBackgroundColor(bkColor, bkColor);
	mGroupboxBaseinfo.SetCatptionTextColor(fontColor);

	mGroupboxGuninfo.SetBackgroundColor(bkColor, bkColor);
	mGroupboxGuninfo.SetCatptionTextColor(fontColor);
	mGroupboxBorrowinfo.SetBackgroundColor(bkColor, bkColor);
	mGroupboxBorrowinfo.SetCatptionTextColor(fontColor);
	mGroupboxDoer.SetBackgroundColor(bkColor, bkColor);
	mGroupboxDoer.SetCatptionTextColor(fontColor);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
Example #15
0
BOOL  CBlockAESDialogKey::OnInitDialog()
{

	CMyDialog::OnInitDialog();


	// 初始化列表框,设置样式
	InitListCtrl(m_ctrlKey);


	// 向列表框里写入44个扩展密钥
	
	CString strTemp;

	for(int i=0;i<44;i++)
	{
		strTemp.Format(_T("  %d"),i);
		m_ctrlKey.InsertItem(i,strTemp);
		m_ctrlKey.SetItemText(i,1,m_strKey[i]);
	}


	return TRUE;
}
Example #16
0
int CDlgView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CScrollView::OnCreate(lpCreateStruct) == -1)
        return -1;

    // TODO:  在此添加您专用的创建代码
    // 定义窗口风格
    //DWORD dwStyle = LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS |
    //WS_CHILD | WS_VISIBLE |WS_GROUP|LVS_NOCOLUMNHEADER;//|LVS_NOSCROLL;  WS_TABSTOP

    //if( NULL == m_pDisplayDlg ){
    //	m_pDisplayDlg = new CDisplayApp ;
    //	m_pDisplayDlg->Create(CDisplayApp::IDD,this);;
    //	m_pDisplayDlg->SetWindowPos(0, 0 , 443 , 880,188 , SWP_SHOWWINDOW) ;
    //	m_pDisplayDlg->ShowWindow(SW_SHOW) ;
    //}
    //return 0;
    DWORD dwStyle =  LVS_REPORT | WS_CHILD | WS_VISIBLE|LVS_NOCOLUMNHEADER;

    CRect rect;
    GetClientRect(&rect);
    // 动态创建
    //VERIFY(m_LargeList.CreateEx(WS_EX_CLIENTEDGE,dwStyle,rect,this,ctrid++));
    VERIFY(m_LargeList.Create(WS_CHILD|WS_VISIBLE|LVS_REPORT|LVS_NOCOLUMNHEADER,rect,this,ctrid++));
    // 设置字体
    CFont *pFont = GetFont();
    if (pFont)
        m_LargeList.SetFont(pFont);
    // 设置扩展风格
    m_LargeList.SetExtendedStyle(~LVS_EX_GRIDLINES|LVS_NOCOLUMNHEADER);//LVS_EX_FULLROWSELECT |
    //m_LargeList.ModifyStyle(WS_BORDER,FALSE);

    //m_LargeList.EnableScrollBar(TRUE);
    m_LargeList.EnableScrollBarCtrl(TRUE);
    //m_LargeList.ModifyStyle(NULL,LVS_NOSCROLL,0);
    //VERIFY(m_Commctrl.CreateEx(WS_EX_CLIENTEDGE,dwStyle,rect,this,ctrid++));
    VERIFY(m_Commctrl.Create(WS_CHILD|WS_VISIBLE|LVS_REPORT|LVS_NOCOLUMNHEADER,rect,this,ctrid++));
    // 设置字体
    m_Commctrl.SetFont(pFont);
    // 设置扩展风格
    m_Commctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | ~LVS_EX_GRIDLINES |LVS_NOCOLUMNHEADER);

    //VERIFY(m_gameCtrl.CreateEx(WS_EX_CLIENTEDGE,dwStyle,rect,this,ctrid++));
    VERIFY(m_gameCtrl.Create(WS_CHILD|WS_VISIBLE|LVS_REPORT|LVS_NOCOLUMNHEADER,rect,this,ctrid++));
    // 设置字体
    m_gameCtrl.SetFont(pFont);
    // 设置扩展风格
    m_gameCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | ~LVS_EX_GRIDLINES |LVS_NOCOLUMNHEADER);


    dwStyle =  WS_CHILD | WS_VISIBLE;
    m_commstatic.Create(_T("应用中心"),dwStyle, rect, this, ctrid++);
    m_commstatic.ModifyStyle(SS_LEFT|SS_LEFT,SS_LEFT,TRUE);
    m_commstatic.SetFont(130,_T("黑体"));


    m_gamestatic.Create(_T("游戏"),dwStyle, rect, this, ctrid++);
    m_gamestatic.ModifyStyle(SS_LEFT|SS_LEFT,SS_LEFT,TRUE);
    m_gamestatic.SetFont(100,_T("黑体"));

    dwStyle =WS_CHILD | WS_VISIBLE;
    m_prebmp.Create(_T(""),dwStyle, rect, this, ctrid++);
    m_prebmp.ModifyStyle(SS_ENHMETAFILE,SS_BITMAP|SS_CENTERIMAGE);
    HBITMAP hBitmap;
    hBitmap = ::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP_SPLITE));
    m_prebmp.SetBitmap(hBitmap);

    InitAppListFromNetWork();

    InitListCtrl();

    if (m_gameapp_list.size() == 0)
    {
        m_gamestatic.ShowWindow(SW_HIDE);
        m_gameCtrl.ShowWindow(SW_HIDE);
    }

    if (m_commapp_list.size() == 0)
    {
        m_commstatic.ShowWindow(SW_HIDE);
        m_Commctrl.ShowWindow(SW_HIDE);
        m_prebmp.ShowWindow(SW_HIDE);
    }
    return 0;
}