/* $Id$ */
/*
* Copyright (C) 2010-2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include <windows.h>
)
{
if(uMsg == WM_DESTROY)
{
PostQuitMessage(0);
return 0;
}
// switch(uMsg)
// {
// case WM_CLOSE:
// vboxVDbgPrint((__FUNCTION__": got WM_CLOSE for hwnd(0x%x)", hwnd));
// return 0;
// case WM_DESTROY:
// vboxVDbgPrint((__FUNCTION__": got WM_DESTROY for hwnd(0x%x)", hwnd));
// return 0;
// case WM_NCHITTEST:
// vboxVDbgPrint((__FUNCTION__": got WM_NCHITTEST for hwnd(0x%x)\n", hwnd));
// return HTNOWHERE;
// }
}
{
/* Register the Window Class. */
{
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
if (!RegisterClass(&wc))
{
}
}
{
0, 0,
w, h,
GetDesktopWindow() /* hWndParent */,
NULL /* hMenu */,
NULL /* lpParam */);
if (hWnd)
{
}
else
{
}
}
return hr;
}
{
if (bRc)
{
0, /* int X */
0, /* int Y */
g_Width, //Rect.left - Rect.right,
if (bRc)
{
do
{
x, /* int X */
y, /* int Y */
g_Width, //Rect.left - Rect.right,
x += dX;
if (x > xMax)
x = xMin;
y += dY;
if (y > yMax)
y = yMin;
Sleep(5);
} while(1);
}
}
return 0;
}
{
{
NULL /* LPSECURITY_ATTRIBUTES lpThreadAttributes */,
0 /* SIZE_T dwStackSize */,
hWnd,
0 /* DWORD dwCreationFlags */,
NULL /* pThreadId */);
if (hThread)
{
{
}
}
}
return 0;
}
{
// NOREF(hInstance); NOREF(hPrevInstance); NOREF(lpCmdLine); NOREF(nCmdShow);
}