08/02/08 05:32:50
const CSize CLIENT_SIZE = {320, 240};
const int DELAY = 3;
const int TIMER_ID = 1;
CPoint g_tp = {CLIENT_SIZE.x / 2, CLIENT_SIZE.y / 2};
CPoint g_cp = g_tp;
int OnButtonUp(UINT nFlags, CPoint point)
{
//nFlagsって何だっけ?
g_tp = point;
}
int OnTimer(UINT nIDEvent)
{
if (nIDEvent == TIMER_ID)
{
g_cp.x += (g_tp.x - g_cp.x) / DELAY;
g_cp.y += (g_tp.y - g_cp.y) / DELAY;
}
}
こんな漢字か?