home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / primcuts.zip / AutoResizeClientControls / AutoResizeClientControls.h < prev    next >
Text File  |  1998-05-03  |  1KB  |  38 lines

  1. // window class name
  2. #define WC_AUTOSIZECLIENT                "AutoSizeClientClass"
  3.  
  4. // relative coordinates structure
  5. typedef struct _RELWNDPOS
  6. {
  7.    float x;                              // relative left coordinate from 0.0 to 1.0
  8.    float y;                              // relative bottom coordinate from 0.0 to 1.0
  9.    float xx;                             // relative right coordinate from 0.0 to 1.0
  10.    float yy;                             // relative top coordinate from 0.0 to 1.0
  11.    LONG  xAdd;                           // how many pels to add/subtract
  12.    LONG  yAdd;                           // how many pels to add/subtract
  13.    LONG  xxAdd;                          // how many pels to add/subtract
  14.    LONG  yyAdd;                          // how many pels to add/subtract
  15. }RELWNDPOS, *PRELWNDPOS;
  16.  
  17. // WinCreateWindow() parameters and relativecoordinates structure
  18. typedef struct _CREATEWND
  19. {
  20.    HWND        hwndParent;
  21.    PSZ         pszClass;
  22.    PSZ         pszTitle;
  23.    ULONG       flStyle;
  24.    RELWNDPOS   pos;
  25.    HWND        hwndOwner;
  26.    HWND        hwndInsertBehind;
  27.    ULONG       id;
  28.    PVOID       pCtlData;
  29.    PVOID       pPresParams;
  30. }CREATEWND, *PCREATEWND;
  31.  
  32. // function prototypes
  33. extern BOOL ascRegisterClass(HAB hAB);
  34.  
  35. // usermessages
  36. #define WMU_ARCC_ADD                     WM_USER+1
  37.  
  38.