急。。。。。。。
                 	
                        发表在C语言图书答疑
                        2009-04-23                                                
                    		
                                                                            	
                        
                        
                    
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    void CMyDlg::OnSelendokComboBrushcolor()
{
// TODO: Add your control notification handler code here
int i;
i=m_ComboBrushColor.GetCurSel();
if(i=0)
{
m_crBrushColor = RGB(0,0,255);
}
else if(i=1)
{
m_crBrushColor = RGB(0,255,255);
}
else if(i=2)
{
m_crBrushColor= RGB (0,255,0);
}
else if(i=3)
{
m_crBrushColor= RGB (255,0,0);
}
else if(i=4)
{
m_crBrushColor = RGB(255,255,0);
}
}
void CMyDlg::OnSelendokComboPencolor()
{
// TODO: Add your control notification handler code here
int i;
i=m_ComboPenColor.GetCurSel();
if(i=0)
{
m_crPenColor=RGB(0,0,255);
}
else if(i=1)
{
m_crPenColor=RGB(0,255,255);
}
else if(i=2)
{
m_crPenColor=RGB(0,255,0);
}
else if(i=3)
{
m_crPenColor=RGB(255,0,0);
}
else if(i=4)
{
m_crPenColor=RGB(255,255,0);
}
话刷颜色改变不了,只是默认的。什么原因呀,代码在上面 谢谢。。[img src=null/img][img src=null/img]

 
	
                                                 VIP会员
VIP会员 购物车
购物车

 私信
                         私信 
                     发表新帖
发表新帖 立即签到
立即签到 
        		  
        		 
         		 关注
关注
                  回复
 回复 支持(
                	支持( 反对(
                    反对( 
                







 
                     
                     
					 
						 
						 
						 
						