This collection of code is a DAY of the WEEK type of subclassed WC_ENTRYFIELD control.  It can be used in dialog boxes or as a stand alone control window in an application.  In both case's you need to register the class in your process through the use of the RegisterDayFieldClass call.  The "TEST" code is an example of how you use the class from an application as a control window.