Exemple #1
0
GFGClass::GFGClass()
	:
	JPtrArray<GFGMemberFunction>(JPtrArrayT::kDeleteAll),
	itsBaseClasses(NULL),
	itsBaseClassFiles(NULL),
	itsAncestors(NULL),
	itsAncestorFiles(NULL)
{
	itsLink	= new GFGLink();
	assert(itsLink != NULL);
	ListenTo(itsLink);

	SetCompareFunction(GFGMemberFunction::CompareFunction);
}
Exemple #2
0
BOOL GGridCtrl::Create(const RECT& rect, CWnd* parent, UINT nID, DWORD dwStyle )
{	
	RECT rc;
	parent->GetClientRect( &rc );
	rc.left += 3; rc.top += 15; rc.right -= 3; rc.bottom -= 3;
	if( !CGridCtrl::Create( rc, parent, nID, dwStyle ) )	
		return FALSE;

	EnableDragAndDrop(TRUE);
	SetFixedColumnSelection(TRUE);
	SetFixedRowSelection(TRUE);
	EnableColumnHide();
	AutoSize();
	SetCompareFunction(CGridCtrl::pfnCellNumericCompare);
	SetFixedRowCount(1);
	SetFixedColumnCount(1);		
	EnableDragRowMode( FALSE );
	EnableDragAndDrop( FALSE );	
	SetSingleRowSelection(TRUE);
	SetFixedRowSelection( TRUE );
	SetFixedColumnSelection( TRUE );
	SetRowHeight(0,20);
	return TRUE;
}
Exemple #3
0
		BlockRunHashtable(int capacity)
			: Hashtable(capacity)
		{
			SetHashFunction((uint32 (*)(const void *))BlockRunHash);
			SetCompareFunction((bool (*)(const void *, const void *))BlockRunCompare);
		}