Repository navigation
circ
Directory actions
More options
Directory actions
More options
circ
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
<!--TO READ THIS HELP FILE, RIGHT-CLICK ON THE FILE NAME IN THE
SOLUTION EXPLORER PANE AND SELECT "VIEW IN BROWSER"-->
<html><head><title>CIRC Sample: ActiveX Control</title></head><body><h1>CIRC Sample: ActiveX Control</h1><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()"></div><p /><p>The CIRC sample is a simple example of an ActiveX Control. </p><p>CIRC illustrates the following: </p><ul><li><p>Changing the painting behavior of an ActiveX control</p></li><li><p>Adding stock properties</p></li><li><p>Adding custom properties</p></li><li><p>Responding to mouse events</p></li><li><p>Adding custom events</p></li><li><p>Using text and fonts</p></li><li><p>Implementing ActiveX control property pages</p></li><li><p>Using simple data binding for control properties</p></li></ul><div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Security Note </th></tr><tr><td><p>This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices.</p></td></tr></table></div><h1 class="heading">Building and Running the Sample</h1><div id="sectionSection0" class="seeAlsoNoToggleSection"><h4 class="subHeading">To build and run the CIRC sample</h4><div class="subSection"><ol><li><p>Open the solution Circ.sln.</p></li><li><p>On the <b>Build</b> menu, click <b>Build</b>.</p></li></ol></div><p>See Controls Samples for details on adding a control to the Toolbox, manually registering a control, and using the ActiveX Control Test Container.</p></div><h1 class="heading">Keywords</h1><div id="sectionSection1" class="seeAlsoNoToggleSection"><p>The CIRC sample demonstrates the following keywords:</p><p>AfxGetInstanceHandle; CDC::Ellipse; CDC::SelectObject; CDC::SelectStockObject; CDialog::DoModal; CString::AllocSysString; CString::GetLength; Ellipse; ExtTextOut; FillRect; GetClientRect; GetDC; GetVersion; MAKELONG; RGB; ReleaseDC; SelectObject; SetBkMode; SetTextAlign; SetTextColor</p><div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td><p>Some of the samples, such as this one, have not been modified to reflect the changes in the Visual C++ wizards, libraries, and compiler, but still demonstrate how to complete your desired task. </p></td></tr></table></div></div></div><div id="footer"><div class="footerLine"></div>
© Microsoft Corporation. All rights reserved. Send <a href="mailto:DevDocs@microsoft.com?subject=Documentation Feedback :CIRC Sample: ActiveX Control">comments</a> about this topic to Microsoft.
</div></div></body></html>