疯子的博客

做一件事,专注一件事
msdn上发现了个错误

CDHtmlDialog::DDX_DHtml_Radio

See Also Send Feedback

Exchanges data between a member variable and a radio button on an HTML page.

void DDX_DHtml_Radio(
   CDataExchange* pDX,
   LPCTSTR szId,
   long& value 
);

Collapse imageParameters

pDX

A pointer to a CDataExchange object.

szId

The value that you specified for the HTML control's ID parameter.

value

The value being exchanged.

Collapse imageRequirements

Header: afxdhtml.h

 

 

红色部分有误  应该是控件的“name”属性

DDX_DHtml_Radio(pDX, _T("R2"), m_long);

<input id="Radio1" checked="true" name="R2" type="radio" value="1" />1&nbsp;
    <input id="Radio2" checked="false" name="R2" type="radio" value="2" /> 2&nbsp;
    <input id="Radio3" checked="false" name="R2"  type="radio"  value="V1" />3&nbsp;   
    <input id="Radio4" checked="false" name="R2"  type="radio" value="V1" />4&nbsp;  
    <input id="Radio5" checked="false" name="R2" type="radio"  value="V1" />5&nbsp;

posted on 2010-06-23 16:32  老陈  阅读(293)  评论(0)    收藏  举报