/**************/ /* auto.c */ /***************************************************************************** PROGRAM: auto.c Windows: Win 3.1 & WIN32 PURPOSE: Ajeluttaa autoja ympäri näyttöä Editor: Vesa Lappalainen 22.10.1994 PROJECT: auto.c, laskurm4.rc, ALI\def.def, ALI\tabhand.c, ALI\autotw.c *****************************************************************************/ #include #include #include "tabhand.h" #include "autot.h" void SetSize(tCreWndSt *c) { c->cs.x = 10; c->cs.y = 10; c->cs.cx = 500; c->cs.cy = 400; } /****************************************************************************/ TblClassSWindowMAINWC("TblWndClass","ikoni","Car for Windows",MsgTbl,0,SetSize); /****************************************************************************/ static EVENT WM_create(tMSGParam *msg) { alusta_autot(GetWindowInstance(msg->hWnd),msg->hWnd,".\\laskuri.ini"); return 0; } /****************************************************************************/ /* Viestien käsittelytaulukko */ /****************************************************************************/ tMSGEntry MsgTbl[] = { EV_HANDLE_WM_DESTROY, { WM_CREATE , DoC , DoC , WM_create }, /*a*/ { 0 } }; /****************************************************************************/