a simple implement for DirectUI