<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -129,30 +129,31 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
 {
 	WNDCLASS wc;
 
-
-	wc.style         = CS_HREDRAW | CS_VREDRAW;
-	wc.lpfnWndProc   = LayerWndProc;
+	// &#402;*&#402;C&#402;&#8220;&#402;E&#402;B&#402;&#8220;&#402;h&#402;E
+	wc.style         = 0;							// WM_PAINT &#8218;&#240;&#8216;&#8212;&#8218;&#231;&#8218;&#200;&#8218;&#162;
+	wc.lpfnWndProc   = WndProc;
 	wc.cbClsExtra    = 0;
 	wc.cbWndExtra    = 0;
 	wc.hInstance     = hInstance;
 	wc.hIcon         = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_GYAZOWIN));
 	wc.hCursor       = LoadCursor(NULL, IDC_CROSS);	// + &#8218;&#204;&#402;J*[&#402;\&#402;&#8249;
-	wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
+	wc.hbrBackground = 0;							// &#8221;w&#338;i&#8218;&#224;*&#221;&#8217;&#232;&#8218;&#181;&#8218;&#200;&#8218;&#162;
 	wc.lpszMenuName  = 0;
-	wc.lpszClassName = szWindowClassL;
+	wc.lpszClassName = szWindowClass;
 
 	RegisterClass(&amp;wc);
 
-	wc.style         = 0;							// WM_PAINT &#8218;&#240;&#8216;&#8212;&#8218;&#231;&#8218;&#200;&#8218;&#162;
-	wc.lpfnWndProc   = WndProc;
+	// &#402;&#338;&#402;C&#402;&#8222;*[&#402;E&#402;B&#402;&#8220;&#402;h&#402;E
+	wc.style         = CS_HREDRAW | CS_VREDRAW;
+	wc.lpfnWndProc   = LayerWndProc;
 	wc.cbClsExtra    = 0;
 	wc.cbWndExtra    = 0;
 	wc.hInstance     = hInstance;
 	wc.hIcon         = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_GYAZOWIN));
 	wc.hCursor       = LoadCursor(NULL, IDC_CROSS);	// + &#8218;&#204;&#402;J*[&#402;\&#402;&#8249;
-	wc.hbrBackground = 0;							// &#8221;w&#338;i&#8218;&#224;*&#221;&#8217;&#232;&#8218;&#181;&#8218;&#200;&#8218;&#162;
+	wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
 	wc.lpszMenuName  = 0;
-	wc.lpszClassName = szWindowClass;
+	wc.lpszClassName = szWindowClassL;
 
 	return RegisterClass(&amp;wc);
 }
@@ -197,6 +198,8 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
 	ShowWindow(hWnd, SW_SHOW);
 	UpdateWindow(hWnd);
 
+	// ESC&#402;L*[&#338;&#376;&#8217;m&#402;^&#402;C&#402;}*[
+	SetTimer(hWnd, 1, 100, NULL);
 
 
 	// &#402;&#338;&#402;C&#402;&#8222;*[&#402;E&#402;B&#402;&#8220;&#402;h&#402;E&#8218;&#204;*&#236;*&#172;
@@ -490,6 +493,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 		return DefWindowProc(hWnd, message, wParam, lParam);
 		break;
 
+	case WM_TIMER:
+		// ESC&#402;L*[&#8240;&#376;&#8240;&#186;&#8218;&#204;&#338;&#376;&#8217;m
+		if (GetKeyState(VK_ESCAPE) &amp; 0x8000){
+			DestroyWindow(hWnd);
+			return DefWindowProc(hWnd, message, wParam, lParam);
+		}
+		break;
+
 	case WM_MOUSEMOVE:
 		if (onClip) {
 			// *V&#8218;&#181;&#8218;&#162;*&#192;&#8226;W&#8218;&#240;&#402;Z&#402;b&#402;g</diff>
      <filename>gyazowin/gyazowin.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6fdc78489d3ded7c44e0197cdf022aa1eae64c48</id>
    </parent>
  </parents>
  <author>
    <name>Isshu Rakusai</name>
    <login></login>
    <email>rakusai@gmail.com</email>
  </author>
  <url>http://github.com/gyazo/Gyazowin/commit/f719c840b4f61f813b1c15d3443dd2f34d8b74ae</url>
  <id>f719c840b4f61f813b1c15d3443dd2f34d8b74ae</id>
  <committed-date>2009-11-02T04:48:12-08:00</committed-date>
  <authored-date>2009-11-02T04:48:12-08:00</authored-date>
  <message>Enable ESC key to quit the app</message>
  <tree>f2f4ced8bf2478e23b4868ee22a41c25bb98c03d</tree>
  <committer>
    <name>Isshu Rakusai</name>
    <login></login>
    <email>rakusai@gmail.com</email>
  </committer>
</commit>
