Program/memo
http://www5d.biglobe.ne.jp/~yasukiyo/vc.html
http://www.river.sannet.ne.jp/yuui/WinDlg/WinMsg.html

DWORD dwStyle = WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; //スタイル
OpenGLを使うときは「WS_CLIPCHILDREN | WS_CLIPSIBLINGS」フラグが必要

	uMsg = RegisterWindowMessage(TEXT("QueryCancelAutoPlay"));
	
	while(1)
	{
		if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
		{
			if(!GetMessage(&msg, NULL, 0, 0))
			{
				return msg.wParam;
			}
			if(msg.wParam == WM_SYSKEYDOWN || msg.wParam == WM_SYSKEYUP)
			{
				PeekMessage(&msg, NULL, 0, 0, PM_REMOVE);
			}
			if(msg.wParam == uMsg)
			{
				PeekMessage(&msg, NULL, 0, 0, PM_REMOVE);
				return 1L;
			}
			TranslateMessage(&msg); 
			DispatchMessage(&msg);
		}
   }
	
	return msg.wParam;&br;