构造方法

https://msdn.microsoft.com/library/7ffyb1kb%28v=vs.110%29.aspx

两个构造技术的示例                         

            

            
          

下面简要的示例演示构造钢笔对象两个方法:                       

// One-stage
 CPen myPen1(PS_DOT, 5, RGB(0,0,0));

// Two-stage: first construct the pen
 CPen myPen2;
 // Then initialize it
 if(myPen2.CreatePen(PS_DOT, 5, RGB(0,0,0)))   
{
     // Use the pen
}
原文地址:https://www.cnblogs.com/wflxz/p/6045701.html