CDC类中的成员函数Ellips有两种形式:
Ellipse(int x1, int x2, int y1, int y2);
Ellipse(LPCRECT *lpRect);
当我使用第二种形式时, 为什么以下两种都没有问题:
Ellipse(&CRect(0, 20, 100, 120)); // As it indicates, this formal is right, as the member function needs a
// pointer to CRectEllipse(CRect(0, 20, 100, 120)); // it work ,too! (on VS2008)Why?Thanks.
Ellipse(int x1, int x2, int y1, int y2);
Ellipse(LPCRECT *lpRect);
当我使用第二种形式时, 为什么以下两种都没有问题:
Ellipse(&CRect(0, 20, 100, 120)); // As it indicates, this formal is right, as the member function needs a
// pointer to CRectEllipse(CRect(0, 20, 100, 120)); // it work ,too! (on VS2008)Why?Thanks.
解决方案 »
- 列表框(CListCtrl)报表模式下选择一行为何只能选中第一列?
- 输入法的切换导致程序的卡死
- vc++编译中出现的错误,请帮忙改正!!
- 多播的问题
- 菜鸟急问在view中怎么样创建一个按钮啊?!
- 求教:求最大公约数的函数
- 如何在同一对话框上实现两组RADIO,也就是说,点击一组中的一个RADIO,不会影响另一组的选择
- 各位高人:小弟有礼了!谁能帮我做个小软件
- 可伸缩对话框,缩小的时候为什么看不见
- Holly to SoftDIY!
- manifest authoring warning 81010002: Unrecognized Element "application" in
- 一个新的 error LNK2001: unresolved external symbol,求教
for more please browse to msdn
However, I really want to know why it's designed by that. The "automatical translation" is implicit.
I mean, ths translation should be forbidden.Thanks all the same.
I really want to know why it's designed by that. The "automatical translation" is implicit.
I mean, ths translation should be forbidden.Thanks all the same.
I really want to know why it's designed by that. The "automatical translation" is implicit.
I mean, ths translation should be forbidden.
Thanks all the same.