hWrdWnd = NULL; 
void InitWrdWnd(HWND hParentWnd){	WNDCLASS wndclass ;	HICON hIcon;	wrd_wnd_lock();	if ( wrd_wnd_initflag ) {		memset ( &w32g_wrd_wnd, 0, sizeof (w32g_wrd_wnd_t) );		wrd_wnd_initflag = 0;	}	if (hWrdWnd != NULL) {		DestroyWindow(hWrdWnd);	}	TerminateWrdWnd ();	INILoadWrdWnd();	w32g_wrd_wnd.hNullBrush = GetStockObject ( NULL_BRUSH );	w32g_wrd_wnd.hNullPen = GetStockObject ( NULL_PEN );	hWrdWnd = CreateDialog		(hInst,MAKEINTRESOURCE(IDD_DIALOG_WRD),hParentWnd,WrdWndProc);	WrdWndInfoReset(hWrdWnd);	INILoadWrdWnd();	ShowWindow(hWrdWnd,SW_HIDE);	w32g_wrd_wnd.draw_skip = 0;	w32g_wrd_wnd.font_height = 16; 	w32g_wrd_wnd.font_width = 8; 	w32g_wrd_wnd.row = 80; 	w32g_wrd_wnd.col = 25;	w32g_wrd_wnd.width = w32g_wrd_wnd.font_width * w32g_wrd_wnd.row; 	w32g_wrd_wnd.height = w32g_wrd_wnd.font_height * w32g_wrd_wnd.col; 	w32g_wrd_wnd.pals[W32G_WRDWND_BLACK] = RGB ( 0x00, 0x00, 0x00 );	w32g_wrd_wnd.pals[W32G_WRDWND_RED] = RGB ( 0xFF, 0x00, 0x00 );	w32g_wrd_wnd.pals[W32G_WRDWND_BLUE] = RGB ( 0x00, 0x00, 0xFF );	w32g_wrd_wnd.pals[W32G_WRDWND_PURPLE] = RGB ( 0xFF, 0x00, 0xFF );	w32g_wrd_wnd.pals[W32G_WRDWND_GREEN] = RGB ( 0x00, 0xFF, 0x00 );	w32g_wrd_wnd.pals[W32G_WRDWND_LIGHTBLUE] = RGB ( 0x00, 0xFF, 0xFF );	w32g_wrd_wnd.pals[W32G_WRDWND_YELLOW] = RGB ( 0xFF, 0xFF, 0xFF );	w32g_wrd_wnd.pals[W32G_WRDWND_WHITE] = RGB ( 0xFF, 0xFF, 0xFF );	w32g_wrd_wnd.flag = WRD_FLAG_DEFAULT;	wndclass.style         = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_CLASSDC;	wndclass.lpfnWndProc   = WrdCanvasWndProc ;	wndclass.cbClsExtra    = 0 ;	wndclass.cbWndExtra    = 0 ;	wndclass.hInstance     = hInst ;	wndclass.hIcon         = NULL;	wndclass.hCursor       = LoadCursor(0,IDC_ARROW) ;//	wndclass.hbrBackground = (HBRUSH)(COLOR_SCROLLBAR + 1);	wndclass.hbrBackground = w32g_wrd_wnd.hNullBrush;	wndclass.lpszMenuName  = NULL;	wndclass.lpszClassName = "wrd canvas wnd";	RegisterClass(&wndclass);  	w32g_wrd_wnd.hwnd = CreateWindowEx(0,"wrd canvas wnd",0,WS_CHILD,		CW_USEDEFAULT,0,w32g_wrd_wnd.width,w32g_wrd_wnd.height,		hWrdWnd,0,hInst,0);	w32g_wrd_wnd.hdc = GetDC(w32g_wrd_wnd.hwnd);	// 匳	w32g_wrd_wnd.hbitmap = CreateCompatibleBitmap(w32g_wrd_wnd.hdc,w32g_wrd_wnd.width,w32g_wrd_wnd.height);	w32g_wrd_wnd.hmdc = CreateCompatibleDC(w32g_wrd_wnd.hdc);	w32g_wrd_wnd.hgdiobj_hmdcprev = SelectObject(w32g_wrd_wnd.hmdc,w32g_wrd_wnd.hbitmap);	SelectObject ( w32g_wrd_wnd.hmdc, w32g_wrd_wnd.hNullBrush );	SelectObject ( w32g_wrd_wnd.hmdc, w32g_wrd_wnd.hNullPen );	// [N	w32g_wrd_wnd.hbmp_work = CreateCompatibleBitmap(w32g_wrd_wnd.hdc,w32g_wrd_wnd.width,w32g_wrd_wnd.height);	// eLXg}XN//	w32g_wrd_wnd.hbmp_tmask = CreateBitmap ( w32g_wrd_wnd.width, w32g_wrd_wnd.height, 1, 1, NULL);	w32g_wrd_wnd.hbmp_tmask = CreateCompatibleBitmap(w32g_wrd_wnd.hdc,w32g_wrd_wnd.width,w32g_wrd_wnd.height);	{		HDC hmdc;		RECT rc;		HBRUSH hbrush = CreateSolidBrush ( COLOR_MASK_BLACK );		SetRect ( &rc, 0, 0, w32g_wrd_wnd.width, w32g_wrd_wnd.height );		hmdc = CreateCompatibleDC ( w32g_wrd_wnd.hmdc );		SelectObject ( hmdc, w32g_wrd_wnd.hbmp_tmask );		FillRect ( hmdc, &rc, hbrush );		SelectObject ( hmdc, w32g_wrd_wnd.hbmp_work );		FillRect ( hmdc, &rc, hbrush );		DeleteDC ( hmdc );		DeleteObject ( hbrush );	}	// OtBbN	wrd_graphic_init ( w32g_wrd_wnd.hdc );	ReleaseDC(w32g_wrd_wnd.hwnd,w32g_wrd_wnd.hdc);	{		char fontname[1024];		if ( PlayerLanguage == LANGUAGE_JAPANESE )			strcpy(fontname,"lr ");		else			strcpy(fontname,"Times New Roman");		w32g_wrd_wnd.hFont = CreateFont(w32g_wrd_wnd.font_height,w32g_wrd_wnd.font_width,0,0,FW_DONTCARE,FALSE,FALSE,FALSE,			DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,	      	FIXED_PITCH | FF_MODERN	,fontname);	}	hIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON_TIMIDITY), IMAGE_ICON, 16, 16, 0);	if (hIcon!=NULL) SendMessage(hWrdWnd,WM_SETICON,FALSE,(LPARAM)hIcon);	wrd_wnd_unlock();	WrdWndReset();	w32g_wrd_wnd.active = FALSE;	MoveWindow(w32g_wrd_wnd.hwnd,0,0,w32g_wrd_wnd.width,w32g_wrd_wnd.height,TRUE);	WrdWndClear ( TRUE );	ShowWindow(w32g_wrd_wnd.hwnd,SW_SHOW);	UpdateWindow(w32g_wrd_wnd.hwnd);	UpdateWindow(hWrdWnd);	WrdWndInfoApply();}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/99cb513835698ec5227250073ee12875309c3a03/w32g_subwin2.c/buggy/interface/w32g_subwin2.c