newntui/commonresources/src/filterwizard.cpp
//-----------------------------------------------------------------------------------------
// Initialize the dialog : fills all attributes in the attribute combo box (as well as
// attributes array) and all commands according the current selection in the attributes
// combo box (as well as operations array). Creates the image list with AND and OR images.
// Disables Change and Remove buttons - nothing to change or remove at the beginning.
//-----------------------------------------------------------------------------------------
Initialize the dialog : fills all attributes in the attribute combo box (as well as
attributes array) and all commands according the current selection in the attributes
combo box (as well as operations array). Creates the image list with AND and OR images.
Disables Change and Remove buttons - nothing to change or remove at the beginning.
Initialize the dialog : fills all attributes in the attribute combo box ( as well as attributes array ) and all commands according the current selection in the attributes combo box ( as well as operations array ) . Creates the image list with AND and OR images . Disables Change and Remove buttons - nothing to change or remove at the beginning .
BOOL CFilterWizard::OnInitDialog()  {
	CPropertyPage::OnInitDialog();
	FillAttributesCombo();
	FillOperationsCombo();
	m_ImageList.Create(16,16,TRUE,2,0);
	CBitmap and;
	and.LoadBitmap(IDB_AND);
	CBitmap or;
	or.LoadBitmap(IDB_OR); 
	m_ImageList.Add(&and, RGB(0,0,0));
	m_ImageList.Add(&or,RGB(0,0,0));
    m_FlowTab.SetImageList(&m_ImageList);
	m_AndButton.SetCheck(1);
	m_RemoveButton.EnableWindow(FALSE);
	m_ChangeButton.EnableWindow(FALSE);
	return TRUE;  
}
BOOL CFilterWizard :: OnInitDialog ( ) { CPropertyPage :: OnInitDialog ( ) ; FillAttributesCombo ( ) ; FillOperationsCombo ( ) ; m_ImageList . Create ( 16 , 16 , TRUE , 2 , 0 ) ; CBitmap and ; and . LoadBitmap ( IDB_AND ) ; CBitmap or ; or . LoadBitmap ( IDB_OR ) ; m_ImageList . Add ( & and , RGB ( 0 , 0 , 0 ) ) ; m_ImageList . Add ( & or , RGB ( 0 , 0 , 0 ) ) ; m_FlowTab . SetImageList ( & m_ImageList ) ; m_AndButton . SetCheck ( 1 ) ; m_RemoveButton . EnableWindow ( FALSE ) ; m_ChangeButton . EnableWindow ( FALSE ) ; return TRUE ; }
Initialize the dialog : fills all attributes in the attribute combo box (as well as
attributes array) and all commands according the current selection in the attributes
combo box (as well as operations array).
Initialize the dialog : fills all attributes in the attribute combo box ( as well as attributes array ) and all commands according the current selection in the attributes combo box ( as well as operations array ) .
// Image list for the tokens shown in the tab // We have nothing to change or remove