/**************/ /* tmhello.c */ /**************************************************************************** PROGRAM: tmhello.c PURPOSE: Esimerkki lyhyestä Windows-ohjelmasta. Editor: Vesa Lappalainen 30.8.1994 PROJECT: tmhello.c whello.def ALI\tabhand.c ****************************************************************************/ #include #include "tabhand.h" /***************************************************************************/ TblClassSWindowMAIN("WHelloClass",NULL,"Windows Hello",MsgTbl,0); /***************************************************************************/ static EVENT WM_paint(tMSGParam *msg) /* # MAKE_DC # */ { TextOut(msg->hDC, 10, 10, "Hello world!",12); return 0; } /***************************************************************************/ static tMSGEntry MsgTbl[] = { EV_HANDLE_WM_DESTROY, { WM_PAINT , DoC , DoC , WM_paint, MAKE_DC }, /*a*/ { 0 } }; /***************************************************************************/