int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MSG msg; RECT rc; RegisterAppClass(); GetWindowRect(GetDesktopWindow(), &rc); /* create penguin windows*/ CreateWindowEx(0L, APPCHILD, "", WS_BORDER | WS_VISIBLE, 10, 10, 50, 50, GetDesktopWindow(), (HMENU)1000, NULL, NULL); CreateWindowEx(0L, APPCHILD, "", WS_BORDER | WS_VISIBLE, 10, 70, 200, 200, GetDesktopWindow(), (HMENU)1001, NULL, NULL); /* type ESC to quit...*/ while( GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MSG msg; /* Force XORMOVE window redraw algorithm, required * for this version of alpha blend painting */ mwERASEMOVE = FALSE; RegisterAppClass(); /* set background wallpaper*/ MwSetDesktopWallpaper(&image_car8); /* must update root window until alpha blend blitting * uses off screen memory for hidden windows, rather than * screen memory*/ UpdateWindow(GetDesktopWindow()); CreateAppWindow(); CreateAppWindow(); /* type ESC to quit...*/ while( GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MSG msg; HWND hwnd; RECT rc; RegisterAppClass(); GetWindowRect(GetDesktopWindow(), &rc); #if !(ELKS | MSDOS) /* create penguin window*/ CreateWindowEx(0L, APPCHILD, "", WS_BORDER | WS_VISIBLE, rc.right-130-1, rc.bottom-153-1, 130, 153, GetDesktopWindow(), (HMENU)1000, NULL, NULL); #endif CreateAppWindow(); CreateAppWindow(); CreateAppWindow(); #if !(ELKS | MSDOS) CreateAppWindow(); CreateAppWindow(); CreateAppWindow(); CreateAppWindow(); CreateAppWindow(); hwnd = CreateAppWindow(); GetWindowRect(hwnd, &rc); OffsetRect(&rc, 50, 50); MoveWindow(hwnd, rc.left, rc.top, rc.bottom-rc.top, rc.right-rc.left, TRUE); #endif #if !(ELKS | MSDOS) /* set background wallpaper*/ MwSetDesktopWallpaper(&image_microwin); /*MwSetDesktopWallpaper(&image_under4);*/ /*MwSetDesktopWallpaper(&image_car8);*/ #endif /* type ESC to quit...*/ while( GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MSG msg; extern MWIMAGEHDR image_car8; RegisterAppClass(); MwSetDesktopWallpaper(&image_car8); CreateAppWindow(); /* type ESC to quit...*/ while(GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }