sprintf(m_RectColorInner.GetBuffer(0),"rgb(%d,%d,%d)",
GetRValue(m_colorInner),GetGValue(m_colorInner),
GetBValue(m_colorInner));
sprintf(m_RectColorFrame.GetBuffer(0),"rgb(%d,%d,%d)",
GetRValue(m_colorFrame),GetGValue(m_colorFrame),
GetBValue(m_colorFrame));
-----
buffer 的值被你覆盖掉了
只能输出后者!-----
你定义 2 个数组
分配了 2 个不同的内存块给你
自然不回被覆盖掉了
GetRValue(m_colorInner),GetGValue(m_colorInner),
GetBValue(m_colorInner));
sprintf(m_RectColorFrame.GetBuffer(0),"rgb(%d,%d,%d)",
GetRValue(m_colorFrame),GetGValue(m_colorFrame),
GetBValue(m_colorFrame));
-----
buffer 的值被你覆盖掉了
只能输出后者!-----
你定义 2 个数组
分配了 2 个不同的内存块给你
自然不回被覆盖掉了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货