MFC-based clock programming