title: WM_KEYDOWN not working
body: <p>I'm writing a notepad program and would like the user to be able to press ctrl+n, ctrl+s, ctrl+o, etc, But I'm not even getting a response for the WM_KEYDOWN case. This is how my function is setup:</p>
  
  <pre><code>LRESULT CALLBACK WndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
  {
    switch( msg )
    {
    case WM_CREATE:
      // CREATE STUFF HERE
      break;
    case WM_SIZE:
      // RESIZE STUFF HERE
      break;
    case WM_COMMAND:
      // COMMAND ACTIONS HERE
      break;
    case WM_NOTIFY:
      // NOTIFICATIONS HERE
      break;
    case WM_KEYDOWN:
      MessageBox( hwnd, "OK", "OK", MB_OK );
      break;
    case WM_CLOSE:
      // CLOSE WINDOW HERE
      break;
    case WM_DESTROY:
      // DESTROY WINDOW
      break;
    default:
      return DefWindowProc( hwnd, msg, wParam, lParam );
    }
    return  0;
  }
  </code></pre>
  
  <p>Anybody know what I'm doing wrong? Am I supposed to put the WM_KEYDOWN case somewhere else?</p>