#include #include #include #include #include #include"tabhand.h" #include"mdialog.h" TblClassDlgMAIN("ClassNappi","IKONI","PIKAPIIRTO","NAPPI",MsgTbl) static LONG WM_initdialog(tMSGParam *msg) { MoveWindow(msg->hWnd,10,10,400,400,TRUE); return 0; } static LONG MySize(tMSGParam *msg) { InvalidateRect(msg->hWnd,NULL,TRUE); return 0; } tMSGEntry MsgTbl[] = { EV_HANDLE_WM_DESTROY, // Valmis käsittelijä // { WM_PAINT , DoC , DoC, MyDraw ,1 }, { WM_SIZE , DoC , DoC, MySize ,0 }, // { WM_CREATE , DoC , DoC, MyCreate ,0 }, { WM_INITDIALOG , DoC , DoC, WM_initdialog ,0 }, { 0 } };