home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / IShield for Visual C++ 6.0 / DATA1.CAB / Include_Files / WINSUB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-20  |  6.9 KB  |  164 lines

  1.  
  2.  /*=======================================================================*/
  3.  /*                                                                       */
  4.  /*           (c) InstallShield Software Corporation (1996-1997)          */
  5.  /*            (c)  InstallShield Corporation  (1990-1996)                */
  6.  /*                       Schaumburg, Illinois 60173                      */
  7.  /*                          All Rights Reserved                          */
  8.  /*                           InstallShield (R)                           */
  9.  /*                                                                       */
  10.  /*                                                                       */
  11.  /*      FILE:   WINSUB.H/*                                               */
  12.  /*                                                                       */
  13.  /*      PURPOSE:/*                                                       */
  14.  /*         This header file defines the constants, global variables, and */
  15.  /*         the prototype of the functions in the releated files.         */
  16.  /*                                                                       */
  17.  /*      RELATED FILES: WINSUB.RUL   /*                                   */
  18.  /*                                                                       */
  19.  /*=======================================================================*/   
  20.  
  21. #ifndef _WINSUBRUL_H
  22. #define _WINSUBRUL_H  1
  23.  
  24. declare
  25.      //
  26.      // Function definitions
  27.      //
  28.  
  29.      prototype _WinSubPostMessage     ( HWND, SHORT, SHORT, LONG );
  30.      prototype _WinSubMoveWindow      ( HWND, INT, INT, INT, INT, INT );
  31.      prototype _WinSubGetClientRect   ( HWND, BYREF INT, BYREF INT,
  32.                                               BYREF INT, BYREF INT );
  33.      prototype _WinSubGetModuleHandle ( STRING );
  34.      prototype _WinSubShowCursor      ( INT );
  35.      prototype _WinSubShowWindow      ( HWND, INT );
  36.      prototype _WinSubFocusControl    ( HWND, INT );
  37.      prototype _WinSubFocusWindow     ( HWND );
  38.      prototype _WinSubEnableControl   ( HWND, INT, INT );
  39.      prototype _WinSubGetChildWindow  ( HWND, INT );
  40.      prototype _WinSubEnableWindow    ( HWND, INT );
  41.      prototype _WinSubSetWindowTitle  ( HWND, STRING );
  42.      prototype _WinSubCenterWindow    ( HWND );
  43.      prototype _WinSubIsWindow        ( HWND );
  44.      prototype _WinSubGetWindowRect   ( HWND, BYREF INT, BYREF INT,
  45.                                               BYREF INT, BYREF INT );
  46.      prototype _WinSubSetWindowPos    ( HWND, INT, INT, INT, INT, INT );
  47.  
  48.  
  49. #ifndef _WIN_PROTOTYPES
  50. #define _WIN_PROTOTYPES  1
  51.  
  52.      // Referenced DLL functions
  53.  
  54.      prototype  HWND GDI.SelectObject( HWND, HWND );
  55.      prototype  BOOL GDI.GetTextExtentPoint( HWND, STRING, INT, POINTER );
  56.      prototype  BOOL USER.EnableWindow( HWND, SHORT );
  57.      prototype   INT USER.GetClassName( HWND, POINTER, INT );
  58.      prototype  HWND USER.GetDC( HWND );
  59.      prototype  HWND USER.GetDlgItem( HWND, INT );
  60.      prototype  HWND USER.GetFocus();
  61.      prototype  LONG USER.GetWindowLong( HWND, INT );
  62.      prototype       USER.GetWindowRect( HWND, POINTER );
  63.      prototype SHORT USER.GetWindowWord( HWND, INT );
  64.      prototype  BOOL USER.IsIconic( HWND );
  65.      prototype  BOOL USER.IsWindow( HWND );
  66.      prototype  BOOL USER.IsWindowEnabled( HWND );
  67.      prototype   INT USER.MoveWindow( HWND, INT, INT, INT, INT, INT );
  68.      prototype   INT USER.ReleaseDC( HWND, HWND );
  69.      prototype  HWND USER.SetFocus( HWND );
  70.      prototype       USER.SetWindowText( HWND, STRING );
  71.      prototype   INT USER.ShowWindow( HWND, SHORT );
  72.  
  73.      prototype  INT  USER.LoadString( INT, INT, STRING, INT );
  74.      prototype  HWND KERNEL.GetModuleHandle( STRING );
  75.      prototype       USER.GetClientRect( HWND, POINTER );
  76.      prototype   INT USER.SetWindowPos( HWND, INT, INT, INT, INT, INT, INT );
  77.      prototype  BOOL USER.PostMessage( HWND, SHORT, SHORT, LONG );
  78.      prototype   INT USER.ShowCursor( SHORT );
  79.      prototype  BOOL USER.SystemParametersInfo( HWND, INT, POINTER , INT );
  80.  
  81. #endif
  82.      // Private entries
  83.      prototype _WinSubSetWindowText ( HWND, STRING );
  84.      prototype _WinSubErrDLL        ( STRING );
  85.      prototype _WinSubErrDLLFunc    ( STRING );
  86.  
  87.       /****************  Constants definition  ****************/
  88.  
  89. // Constants retrieved from windows.h
  90. #ifndef SWP_NOSIZE
  91.       #define SWP_NOSIZE              0x0001
  92.       #define SWP_NOMOVE              0x0002
  93.       #define SWP_NOZORDER            0x0004
  94.       #define SWP_NOREDRAW            0x0008
  95.       #define SWP_NOACTIVATE          0x0010
  96.       #define SWP_FRAMECHANGED        0x0020
  97.       #define SWP_SHOWWINDOW          0x0040
  98.       #define SWP_HIDEWINDOW          0x0080
  99.       #define SWP_NOCOPYBITS          0x0100
  100.       #define SWP_NOOWNERZORDER       0x0200
  101.       #define SWP_DRAWFRAME           SWP_FRAMECHANGED
  102.       #define SWP_NOREPOSITION        SWP_NOOWNERZORDER
  103.       #define SWP_NOSENDCHANGING      0x0400
  104.       #define SWP_DEFERERASE          0x2000
  105. #endif
  106.  
  107. #ifndef SPI_GETBEEP
  108.      #define SPI_GETBEEP                 1
  109.      #define SPI_SETBEEP                 2
  110.      #define SPI_GETMOUSE                3
  111.      #define SPI_SETMOUSE                4
  112.      #define SPI_GETBORDER               5
  113.      #define SPI_SETBORDER               6
  114.      #define SPI_GETKEYBOARDSPEED        10
  115.      #define SPI_SETKEYBOARDSPEED        11
  116.      #define SPI_LANGDRIVER              12
  117.      #define SPI_ICONHORIZONTALSPACING   13
  118.      #define SPI_GETSCREENSAVETIMEOUT    14
  119.      #define SPI_SETSCREENSAVETIMEOUT    15
  120.      #define SPI_GETSCREENSAVEACTIVE     16
  121.      #define SPI_SETSCREENSAVEACTIVE     17
  122.      #define SPI_GETGRIDGRANULARITY      18
  123.      #define SPI_SETGRIDGRANULARITY      19
  124.      #define SPI_SETDESKWALLPAPER        20
  125.      #define SPI_SETDESKPATTERN          21
  126.      #define SPI_GETKEYBOARDDELAY        22
  127.      #define SPI_SETKEYBOARDDELAY        23
  128.      #define SPI_ICONVERTICALSPACING     24
  129.      #define SPI_GETICONTITLEWRAP        25
  130.      #define SPI_SETICONTITLEWRAP        26
  131.      #define SPI_GETMENUDROPALIGNMENT    27
  132.      #define SPI_SETMENUDROPALIGNMENT    28
  133.      #define SPI_SETDOUBLECLKWIDTH       29
  134.      #define SPI_SETDOUBLECLKHEIGHT      30
  135.      #define SPI_GETICONTITLELOGFONT     31
  136.      #define SPI_SETDOUBLECLICKTIME      32
  137.      #define SPI_SETMOUSEBUTTONSWAP      33
  138.      #define SPI_SETICONTITLELOGFONT     34
  139.      #define SPI_GETFASTTASKSWITCH       35
  140.      #define SPI_SETFASTTASKSWITCH       36
  141. #endif
  142.  
  143. // SystemParametersInfo flags
  144. #ifndef SPIF_UPDATEINIFILE
  145.      #define SPIF_UPDATEINIFILE          0x0001
  146.      #define SPIF_SENDWININICHANGE       0x0002
  147. #endif
  148.  
  149. // Private constants
  150. #define MAX_WINSUB_TMPSTRING_LENGTH     80
  151. #define MAX_WINSUB_MSGSTRING_LENGTH     255
  152.  
  153.       /****************  Structure definition  ****************/
  154. typedef WINRECTSTRUCT
  155.   begin
  156.         INT     origX;
  157.         INT     origY;
  158.         INT     relX;
  159.         INT     relY;
  160.   end;
  161.  
  162.  
  163. #endif
  164.