📄 readme.htm
字号:
<!--TO READ THIS HELP FILE, RIGHT-CLICK ON THE FILE NAME IN THE
SOLUTION EXPLORER PANE AND SELECT "VIEW IN BROWSER"-->
<html><head><title>BUTTON Sample: Demonstrates a Menu and a Property Page</title></head><body><h1>BUTTON Sample: Demonstrates a Menu and a Property Page</h1><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()"></div><p /><p>The BUTTON sample is a control subclassed from a Windows button control. It demonstrates use of an in-place active menu, a stock property page, and the About box control option.</p><p>See Knowledge Base article Q199431 for information on enabling menu mnemonics in an MFC ActiveX control.</p><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 BUTTON sample</h4><div class="subSection"><ol><li><p>Open the solution button.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 BUTTON sample demonstrates the following keywords:</p><p>AfxGetInstanceHandle; CDialog::DoModal; CMenu::LoadMenu; HIWORD; MAKELONG</p><div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Note </th></tr><tr><td><p>Some 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 :BUTTON Sample: Demonstrates a Menu and a Property Page">comments</a> about this topic to Microsoft.
</div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -