这是猪框架中oncreate函数里:
int i = 0;
while (i!= 4)
{
m_icon[i] = LoadIcon(AfxGetApp()->m_hInstance,
MAKEINTRESOURCE(IDI_ICON1+i));
i++;
}
//设置定时器
SetTimer(1/*标识*/, 1000, NULL);下面响应timer:
static int index = 0;
SetClassLong(m_hWnd, GCL_HICON,(long) m_icon[index]);
index = (++index) % 4;
int i = 0;
while (i!= 4)
{
m_icon[i] = LoadIcon(AfxGetApp()->m_hInstance,
MAKEINTRESOURCE(IDI_ICON1+i));
i++;
}
//设置定时器
SetTimer(1/*标识*/, 1000, NULL);下面响应timer:
static int index = 0;
SetClassLong(m_hWnd, GCL_HICON,(long) m_icon[index]);
index = (++index) % 4;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货