亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hello.cpp

?? Introduction to directx9 3d game programming 一書的源代碼
?? CPP
字號:
//////////////////////////////////////////////////////////////////////////////////////////////////
// 
// File: hello.cpp
// 
// Author: Frank Luna (C) All Rights Reserved
//
// System: AMD Athlon 1800+ XP, 512 DDR, Geforce 3, Windows XP, MSVC++ 7.0 
//
// Desc: Demonstrates creating a Windows application.
//          
//////////////////////////////////////////////////////////////////////////////////////////////////

// Include the windows header file, this has all the
// Win32 API structures, types, and function declarations
// we need to program Windows.
#include <windows.h>

// The main window handle.  This is used to identify
// the main window we are going to create.
HWND MainWindowHandle = 0; 

// Wraps the code necessary to initialize a windows
// application.  Function returns true if initialization
// was successful, else it returns false.
bool InitWindowsApp(HINSTANCE instanceHandle, int show); 

// Wraps the message loop code.
int  Run();               
          
// The window procedure, handles events our window
// receives.
LRESULT CALLBACK WndProc(HWND hWnd,
						 UINT msg,
						 WPARAM wParam,
						 LPARAM lParam); 

// Windows equivalant to main()
int WINAPI WinMain(HINSTANCE hInstance,  
			       HINSTANCE hPrevInstance, 
			       PSTR      pCmdLine, 
		           int       nShowCmd)
{
	// First we create and initialize our Windows 
	// application.  Notice we pass the application 
	// hInstance and the nShowCmd from WinMain as
	// parameters.
	if(!InitWindowsApp(hInstance, nShowCmd)) 
	{
		::MessageBox(0, "Init - Failed", "Error", MB_OK);
		return 0;
	}

	// Once our application has been created and 
	// initialized we enter the message loop.  We
	// stay in the message loop until a WM_QUIT
	// mesage is received, indicating the application
	// should be terminated.
	return Run(); // enter message loop
}

bool InitWindowsApp(HINSTANCE instanceHandle, int show)
{
	// The first task to creating a window is to describe
	// its characteristics by filling out a WNDCLASS 
	// structure.
	WNDCLASS wc; 

	wc.style         = CS_HREDRAW | CS_VREDRAW;
	wc.lpfnWndProc   = WndProc;
	wc.cbClsExtra    = 0;
	wc.cbWndExtra    = 0;
	wc.hInstance     = instanceHandle;
	wc.hIcon         = ::LoadIcon(0, IDI_APPLICATION);
	wc.hCursor       = ::LoadCursor(0, IDC_ARROW);
	wc.hbrBackground = 
	static_cast<HBRUSH>(::GetStockObject(WHITE_BRUSH));
	wc.lpszMenuName  = 0;
	wc.lpszClassName = "Hello";

	// Then we register this window class description 
	// with Windows so that we can create a window based
	// on that description.
	if(!::RegisterClass(&wc)) 
	{
		::MessageBox(0, "RegisterClass - Failed", 0, 0);
		return false;
	}

	// With our window class description registered, we
	// can create a window with the CreateWindow function.
	// Note, this function returns a HWND to the created
	// window, which we save in MainWindowHandle.  Through
	// MainWindowHandle we can reference this particular
	// window we are creating.
	MainWindowHandle = ::CreateWindow(
		                   "Hello",
		                   "Hello",
		                   WS_OVERLAPPEDWINDOW,
		                   CW_USEDEFAULT, 
		                   CW_USEDEFAULT,
		                   CW_USEDEFAULT,
		                   CW_USEDEFAULT,
		                   0,
		                   0, 
		                   instanceHandle,
		                   0);

	if(MainWindowHandle == 0)
	{
		::MessageBox(0, "CreateWindow - Failed", 0, 0);
		return false;
	}

	// Finally we show and update the window we just created.
	// Observe we pass MainWindowHandle to these functions so
	// that these functions know what particular window to 
	// show and update.
	::ShowWindow(MainWindowHandle, show);
	::UpdateWindow(MainWindowHandle);

	return true;
}

int Run()
{
	MSG msg;
	::ZeroMemory(&msg, sizeof(MSG));

	// Loop until we get a WM_QUIT message.  The
	// function GetMessage will only return 0 (false)
	// when a WM_QUIT message is received, which
	// effectively exits the loop.
	while(::GetMessage(&msg, 0, 0, 0) )
	{
		// Translate the message, and then dispatch it
		// to the appropriate window procedure.
		::TranslateMessage(&msg);
		::DispatchMessage(&msg);
	}

	return msg.wParam;
}

LRESULT CALLBACK WndProc(HWND   windowHandle,
				         UINT   msg,     
				         WPARAM wParam,
				         LPARAM lParam)
{
	// Handle some specific messages:
	switch( msg )
	{
		// In the case the left mouse button was pressed,
		// then display a message box.
	case WM_LBUTTONDOWN:
		::MessageBox(0, "Hello, World", "Hello", MB_OK);
		return 0;
		
		// In the case the escape key was pressed, then
		// destroy the main application window, which is
		// identified by MainWindowHandle.
	case WM_KEYDOWN:
		if( wParam == VK_ESCAPE )
			::DestroyWindow(MainWindowHandle);
		return 0;

		// In the case of a destroy message, then
		// send a quit message, which will terminate
		// the message loop.
	case WM_DESTROY: 
		::PostQuitMessage(0); 
		return 0;
	}

	// Forward any other messages we didn't handle
	// above to the default window procedure.
	return ::DefWindowProc(windowHandle,
                           msg,
                           wParam,
                           lParam);
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美xxxx老人做受| 天天免费综合色| 亚洲一区成人在线| 懂色av一区二区三区免费观看| 色狠狠一区二区| 国产欧美一区二区精品性色| 亚洲国产裸拍裸体视频在线观看乱了 | 欧美一级日韩一级| 国产精品区一区二区三| 捆绑变态av一区二区三区| 在线日韩一区二区| 中文字幕日本乱码精品影院| 麻豆精品国产传媒mv男同| 欧美日韩国产三级| 艳妇臀荡乳欲伦亚洲一区| 国产91对白在线观看九色| 久久亚洲影视婷婷| 免费人成网站在线观看欧美高清| 色妞www精品视频| 国产精品久久久一区麻豆最新章节| 老汉av免费一区二区三区| 欧美一区二区三区视频免费播放| 亚洲一区在线视频观看| 色播五月激情综合网| 亚洲色图一区二区三区| jvid福利写真一区二区三区| 久久久精品黄色| 国产在线播放一区| 国产亚洲精久久久久久| 国产美女主播视频一区| 久久婷婷综合激情| 国产91露脸合集magnet| 国产精品视频在线看| 成人白浆超碰人人人人| 亚洲欧洲日韩在线| 91网站在线观看视频| 亚洲欧美国产77777| 欧洲一区在线电影| 日韩国产欧美在线播放| 欧美成人午夜电影| 欧美视频中文一区二区三区在线观看| 亚洲欧洲成人精品av97| 成人av在线看| 伊人色综合久久天天人手人婷| 色欧美88888久久久久久影院| 亚洲精品国产精华液| 欧美精品久久久久久久多人混战| 天堂va蜜桃一区二区三区 | 91在线视频网址| 综合中文字幕亚洲| 色综合欧美在线视频区| 亚洲国产综合在线| 欧美成人vps| 成人精品免费看| 亚洲在线视频免费观看| 欧美一区午夜视频在线观看| 国产精品影视网| 日韩理论电影院| 欧美日本国产视频| 国产精品1024| 亚洲一区欧美一区| www激情久久| 色噜噜夜夜夜综合网| 免费观看久久久4p| 国产精品久久看| 日韩欧美一级精品久久| 99久久国产综合精品色伊| 日韩国产在线一| 亚洲国产精品v| 日韩三级伦理片妻子的秘密按摩| 成人一区在线观看| 日韩精品一二区| 日韩久久一区二区| 2021国产精品久久精品| 在线观看视频91| 成人久久久精品乱码一区二区三区 | 婷婷成人激情在线网| 国产亚洲精品久| 欧美视频日韩视频| 成人免费视频一区| 久久精品国产精品亚洲精品| 樱桃视频在线观看一区| 久久亚洲一级片| 91精品一区二区三区在线观看| 国产成人免费视频| 久久99精品视频| 午夜精品久久久久久久久久| 最近中文字幕一区二区三区| 久久久99精品久久| 欧美一区二区三区在线| 日本高清免费不卡视频| 风间由美一区二区av101| 免费观看在线色综合| 亚洲午夜激情av| 亚洲色图视频网| 中文文精品字幕一区二区| 精品国产亚洲在线| 91麻豆精品国产91久久久使用方法 | 久久精品国产成人一区二区三区| 一区二区三区在线视频免费| 国产精品女主播av| 国产日韩欧美精品在线| 精品乱人伦一区二区三区| 欧美日韩亚洲另类| 91官网在线免费观看| 91色综合久久久久婷婷| 99久久夜色精品国产网站| 国产高清在线精品| 国产精品69毛片高清亚洲| 狠狠v欧美v日韩v亚洲ⅴ| 久久99精品久久久久久久久久久久| 日韩成人一级片| 久久精品国产99国产| 极品美女销魂一区二区三区 | 欧美精品一区二区三区蜜桃 | 国产91在线观看| 国产黄人亚洲片| 国产69精品久久久久毛片| 国产一区 二区| fc2成人免费人成在线观看播放| 国产精品香蕉一区二区三区| 国产91露脸合集magnet| 99久免费精品视频在线观看| 97精品超碰一区二区三区| 91浏览器在线视频| 欧美午夜理伦三级在线观看| 欧美精品在线视频| 精品欧美久久久| 中文欧美字幕免费| 一二三四区精品视频| 日韩二区三区四区| 精品中文字幕一区二区小辣椒| 国产盗摄精品一区二区三区在线 | 亚洲色图清纯唯美| 午夜精品一区二区三区免费视频| 欧美96一区二区免费视频| 国产在线不卡一区| 99久久婷婷国产综合精品| 欧美亚日韩国产aⅴ精品中极品| 在线成人免费视频| 欧美精品一区二区三区很污很色的| 国产日韩一级二级三级| 一区二区三区91| 狠狠色2019综合网| 99视频精品免费视频| 欧美一卡二卡在线| 中文字幕欧美日韩一区| 亚洲一区二区三区四区在线| 激情综合色综合久久| 色综合天天综合在线视频| 69久久夜色精品国产69蝌蚪网| 久久久久久久国产精品影院| 亚洲人123区| 麻豆91在线观看| 色素色在线综合| 精品久久久久久无| 亚洲影视在线播放| 国产乱国产乱300精品| 欧美日韩一区精品| 欧美激情一区二区| 美腿丝袜在线亚洲一区 | 国产精品一二三四区| 欧美色图免费看| 国产精品视频线看| 青青草97国产精品免费观看| 欧美成人福利视频| 亚洲成人免费视频| 风间由美中文字幕在线看视频国产欧美 | 日韩欧美成人一区二区| 亚洲精品视频自拍| 豆国产96在线|亚洲| 日韩一区二区精品在线观看| 亚洲精品国久久99热| 国产不卡在线播放| 久久女同精品一区二区| 免费观看成人鲁鲁鲁鲁鲁视频| 欧洲一区二区三区免费视频| 国产精品久久久久久久久搜平片| 精品一区二区精品| 日韩视频国产视频| 日韩电影免费一区| 欧美日高清视频| 亚洲国产综合91精品麻豆| 色哟哟一区二区| 国产精品高清亚洲| youjizz久久| 国产女人18水真多18精品一级做| 久久99日本精品| 日韩亚洲国产中文字幕欧美| 日本成人在线看| 日韩网站在线看片你懂的| 日本伊人精品一区二区三区观看方式 | 69堂国产成人免费视频| 亚洲成人你懂的| 欧美在线视频全部完| 亚洲影视资源网| 欧美肥大bbwbbw高潮| 丝袜a∨在线一区二区三区不卡| 欧美在线你懂的| 日韩精品国产欧美|