ActiveX Controls in HTML Files

You've seen the ActiveX Calendar control in an MFC modal dialog. You can use the same control in a Web page. The following HTML code will work (assuming 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 EX08A dialog resource) identifies the Calendar control in the Registry. A browser can download an ActiveX control.



Programming Microsoft Visual C++
Programming Microsoft Visual C++
ISBN: 1572318570
EAN: 2147483647
Year: 1997
Pages: 332

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net