学习总结 CButton/SetCheck String/Compare
来源:互联网 发布:电脑端口怎么打开 编辑:程序博客网 时间:2024/06/06 09:45
1 在进行Radio 类型按钮的时候设定按钮的 选中与未选中状态时
((CButton*)GetDlgItem(IDC_CHECK_VISION_ENABLE))->SetCheck(MACHINE.m_bVisionEnable ? BST_CHECKED : BST_UNCHECKED);
其中若MACHINE.m_bVisionEnable为true时,选中BST_CHECKED表示为1.BST_UNCHECKED为0.表示没有选中
2 CString /Compare
//引自MSDN
int Compare( LPCTSTR lpsz ) const;
Return Value
Zero if the strings are identical, < 0 if this CString object is less thanlpsz, or > 0 if this CString object is greater than lpsz.
Example
The following example demonstrates the use of CString::Compare.
// example for CString::CompareCString s1( "abc" );CString s2( "abd" );ASSERT( s1.Compare( s2 ) == -1 ); // Compare with another CString.ASSERT( s1.Compare( "abe" ) == -1 ); // Compare with LPTSTR string.
0 0
- 学习总结 CButton/SetCheck String/Compare
- CButton::SetCheck
- CButton操作总结
- CButton类的学习
- String..::.Compare Method (String, String)
- CButton
- CButton
- cbutton
- string .Compare的用法
- String.Compare的用法
- C# string.Compare()方法
- compare two string
- HDU String Compare
- hdu 1894 String Compare
- Hdu 1894 String Compare
- Python string compare
- string compare用法
- 1004 String compare
- java 性能调优
- java线程安全总结
- word 页码配置
- MYSQL添加新用户 MYSQL为用户创建数据库 MYSQL为新用户分配权限
- ognl.ExpressionSyntaxException: Malformed OGNL expression
- 学习总结 CButton/SetCheck String/Compare
- 组合查询(机房重构知识点总结)
- MFC学习笔记(八)
- 正则表达式入门(Java版)
- Source Insight的应用技巧、宏功能
- POJ2096-Collecting Bugs(概率DP)
- 01背包
- JLS --(Java 中的static)
- Linux中Samba的安装和配置