CColorDialog ColorDialog;
if(ColorDialog.DoModal()==IDOK)
{
COLORREF Color;
Color=ColorDialog.GetColor();
CString strText;
strText.Format("the selected color was RGB(%d,%d,%d)",GetRVaule(Color),GetGVaule(Color),GetBVaule(Color));
AfxMessageBox(strText);
}
请问GetGVaule(Color)在什么地方定义了,COLORREF又在哪里定义了呢?
我在编译时的提示是:
H:\test\a\aView.cpp(145) : error C2447: missing function header (old-style formal list?)
请指点!
if(ColorDialog.DoModal()==IDOK)
{
COLORREF Color;
Color=ColorDialog.GetColor();
CString strText;
strText.Format("the selected color was RGB(%d,%d,%d)",GetRVaule(Color),GetGVaule(Color),GetBVaule(Color));
AfxMessageBox(strText);
}
请问GetGVaule(Color)在什么地方定义了,COLORREF又在哪里定义了呢?
我在编译时的提示是:
H:\test\a\aView.cpp(145) : error C2447: missing function header (old-style formal list?)
请指点!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货