SelectObject
2015-07-17 11:33
519 查看
CPen* SelectObject( CPen* pPen );
CBrush* SelectObject( CBrush* pBrush );
virtual CFont* SelectObject( CFont* pFont );
CBitmap* SelectObject( CBitmap* pBitmap );
int SelectObject( CRgn* pRgn );
Return Value
A pointer to the object being replaced. This is a pointer to an object of one of the classes derived from CGdiObject, such as CPen, depending on which version of the function is used. The return value is NULL if there is an error. This function may return a pointer to a temporary object. This temporary object is only valid during the processing of one Windows message. For more information, see CGdiObject::FromHandle.
The version of the member function that takes a region parameter performs the same task as the SelectClipRgn member function. Its return value can be any of the following:
COMPLEXREGION New clipping region has overlapping borders.
ERROR Device context or region is not valid.
NULLREGION New clipping region is empty.
SIMPLEREGION New clipping region has no overlapping borders.
Parameters
CBrush* SelectObject( CBrush* pBrush );
virtual CFont* SelectObject( CFont* pFont );
CBitmap* SelectObject( CBitmap* pBitmap );
int SelectObject( CRgn* pRgn );
Return Value
A pointer to the object being replaced. This is a pointer to an object of one of the classes derived from CGdiObject, such as CPen, depending on which version of the function is used. The return value is NULL if there is an error. This function may return a pointer to a temporary object. This temporary object is only valid during the processing of one Windows message. For more information, see CGdiObject::FromHandle.
The version of the member function that takes a region parameter performs the same task as the SelectClipRgn member function. Its return value can be any of the following:
COMPLEXREGION New clipping region has overlapping borders.
ERROR Device context or region is not valid.
NULLREGION New clipping region is empty.
SIMPLEREGION New clipping region has no overlapping borders.
Parameters
相关文章推荐
- java 后台使用gson 将json字符串转换为List<Map<String,object>> 数组
- Objective-C学习备忘录:Clang编译器编译运行Objective-C代码
- 第5章分布式系统模式 在 .NET 中使用 DataSet 实现 Data Transfer Object
- 第5章分布式系统模式 在 .NET 中使用 DataSet 实现 Data Transfer Object
- Object之克隆对象clone 和__clone()函数
- Object之魔术函数__toString() 直接输出对象引用时自动调用
- Object之魔术函数__call() 处理错误调用
- objc_setAssociatedObject获取cell上button对应所在的行
- 【Object-C】 NSTimer用法,暂停,继续,初始化
- protocol的基本使用与代理设计模式的应用
- 在Window环境下,使用CodeBlocks+GNUStep 配置Objective-C开发环境
- Objective-C学习笔记之SEL和@selector
- oc三种传值方式:通知传值,代理传值,block传值
- 初学Objective-C
- Objective-C编码规范:26个方面解决iOS开发问题
- [Objective-C]-02-set get语法.类方法.self关键字与点语法
- Objective-C之代码块(block)的使用
- How Do I Declare A Block in Objective-C?
- NSRange用法 oc
- API--Object,String,Scanner--2