#include
#include"winevent.hpp"
#include
#include
intnInt=0;
intnStart=0;
intnEnd=0;
charbuf[255];
//////////////////////////////////////////////////////////////
//Eventhandlers
template
LRESULTOnMsg(HWNDhWnd,WPARAMwParam,LPARAMlParam)
{
strcpy(buf,"Pressanykeytostarttest");
returnDefWindowProc(hWnd,WM_CREATE,wParam,lParam);
}
template
LRESULTOnMsg(HWNDhWnd,WPARAMwParam,LPARAMlParam)
{
nInt=0;
strcpy(buf,"runningtest,pleasewait...");
InvalidateRect(hWnd,NULL,true);
SendMessage(hWnd,WM_PAINT,0,0);
nStart=GetTickCount();
PostMessage(hWnd,WM_TIMER,0,0);
returnDefWindowProc(hWnd,WM_KEYDOWN,wParam,lParam);
}
template
LR...
>> 阅读全文