ActiveX Controls in HTML Files
You've seen the ActiveX calendar control in an MFC modal dialog box. You can use the same control in a Web page. The following HTML code will work (if the person reading the page has the calendar control installed and registered on his or her machine):
<OBJECT
CLASSID="clsid:8E27C92B-1264-101C-8A2F-040224009C02"
WIDTH=300 HEIGHT=200 BORDER=1 HSPACE=5 ID=calendar>
<PARAM NAME="Day" VALUE=7>
<PARAM NAME="Month" VALUE=11>
<PARAM NAME="Year" VALUE=1998>
</OBJECT>
The CLASSID attribute (the same number that was in the Ex09a dialog resource) identifies the calendar control in the Registry. A browser can download an ActiveX control.