Page 114 - DCAP408_WEB_PROGRAMMING
P. 114

Windows Programming




                    Notes                  case VK_LEFT:
                                                       //  Insert  code  here  to  process  the  LEFT  ARROW  key
                                             // ...
                                             break;

                                           case VK_RIGHT:
                                                       //  Insert  code  here  to  process  the  RIGHT  ARROW  key
                                             // ...
                                             break;


                                           case VK_UP:
                                                       //  Insert  code  here  to  process  the  UP  ARROW  key
                                             // ...
                                             break;


                                           case VK_DOWN:
                                                       //  Insert  code  here  to  process  the  DOWN  ARROW  key
                                             // ...
                                             break;


                                           case VK_DELETE:
                                                       //  Insert  code  here  to  process  the  DELETE  key
                                             // ...
                                             break;


                                           default:
                                                       //  Insert  code  here  to  process  other  noncharacter  keystrokes
                                             // ...
                                             break;
                                         }




                                      Task  Make distinction between WM_KEYDOWN and WM_KEYUP messages.

                                   Self Assessment

                                   Fill in the blank:
                                   4.  A system keystroke message is produced when the user types a key in amalgamation with
                                       the ALT key or when the user types a key and the focus is ..........................








          108                               LOVELY PROFESSIONAL UNIVERSITY
   109   110   111   112   113   114   115   116   117   118   119