#include HWND hStatic1 = NULL;
const int IDT_TIMER1 = 0;
LRESULT CALLBACK WndProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam) {
switch (Message) {
/* Upon destruction, tell the main thread to stop */
case WM_DESTROY: {
printf(".");
PostQuitMessage(0);
break;
}
/* All other messages (a lot of them) are processed using default procedures */
default:
return DefWindowProc(hWnd, Message, wParam, lParam);
}
return 0;
}
void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
WCHAR buf[20];
int Cur = 0x100;
wsprintf(buf, L"%ld", Cur);
SetWindowText(hStatic1, buf);
}
void SetFont(HWND hwnd, int iFont, WCHAR* FontName)//iFont height and Font name
{