home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / SCRPTEXM.PAK / CODEW32.DAT < prev    next >
Encoding:
Text File  |  1997-05-06  |  686 b   |  22 lines

  1. CODEW32.DAT: WIN32 code library file.
  2.  
  3. MAIN FILE: CODELIB.SPP
  4.  
  5. NOTES: Enter library entries. The first line of each entry must be the
  6.   entry marker, immediately followed by a description. The code begins
  7.   on the line following the description, and extends until the next
  8.   marker or EOF.
  9.  
  10. <*>Example entry: Modify system menu.
  11. // Modify system menu.
  12. HMENU hMenu = GetSystemMenu( hWnd, FALSE );
  13. ModifyMenu( hMenu, SC_CLOSE, MF_BYCOMMAND | MF_GRAYED, NULL, NULL );
  14. EnableMenuItem( hMenu, SC_CLOSE, MF_BYCOMMAND | MF_DISABLED );
  15.  
  16. <*>Example entry: Prevent opening of icon.
  17. // Prevent "opening" (restoring or maximizing) of icon.
  18.     case WM_QUERYOPEN:
  19.         return 0;
  20.  
  21.    
  22.