home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / status.zip / STATUS.H < prev    next >
Text File  |  1995-04-19  |  2KB  |  66 lines

  1.  
  2. VOID UfMainCreate(PGPFPARMS pGpf);
  3.  
  4. VOID UfStatParmsEndSpin(PGPFPARMS pGpf);
  5. VOID UfStatParmsFonts(PGPFPARMS pGpf);
  6. VOID UfStatParmsCbx(PGPFPARMS pGpf);
  7. VOID UfStatParmsInit(PGPFPARMS pGpf);
  8. VOID UfStatParmsPBOut(PGPFPARMS pGpf);
  9. VOID UfStatParmsCBBorder(PGPFPARMS pGpf);
  10. VOID UfStatParmsCBTop(PGPFPARMS pGpf);
  11. VOID UfStatParmsPBIn(PGPFPARMS pGpf);
  12. VOID UfStatPBSend(PGPFPARMS pGpf);
  13. VOID UfStatTextAlign(USHORT);
  14.  
  15. /* set default height for hwndStatus. method will change when dynamic font
  16.     support is added %%%%
  17. */
  18. #define MSG_HEIGHT         24
  19.  
  20. #define STATUS_FID         50
  21. #define STAT_TEXT_LEN        128
  22.  
  23. #define WM_USER_SETTEXT    WM_USER
  24. #define WM_USER_SETVAL     (WM_USER+1)
  25.  
  26. /* mp1 values for WM_USER_SETVAL. */
  27. #define ST_SIZESHADOW        1
  28. #define ST_BORDER            2
  29. #define ST_INOUT            3
  30. #define ST_TEXTCOLOR        4
  31. #define ST_BORDERCOLOR     5
  32. #define ST_BACKCOLOR        6
  33. #define ST_SHADOWDARKCOLOR     7
  34. #define ST_SHADOWLIGHTCOLOR    8
  35. #define ST_TEXTALIGN        9
  36. #define ST_POSITION        10
  37.  
  38.  
  39. typedef struct{
  40.     SHORT    height;     /* total window height */
  41.     SHORT    usShadow;    /* shadow size, in pixels */
  42.     BOOL    f3DOut;
  43.     BOOL    fBorder;
  44.     BOOL    fTop;        /* top or bottom of CLIENT */
  45.     LONG    BackColor;
  46.     LONG    TextColor;
  47.     LONG    BorderColor;
  48.     LONG    ShadowDark;
  49.     LONG    ShadowLight;
  50.     USHORT    usAlign;    /* text alignment flag for WinDrawText(), DT_xxx */
  51.     CHAR achText[STAT_TEXT_LEN];    /* current text */
  52.     USHORT    usTextAreaHeight;
  53.     HDC     hdc;
  54.     FONTDLG fdlg;
  55.     } STATPARMS;
  56.  
  57. typedef STATPARMS * PSTATPARMS;
  58. #define LEN_STATPARMS sizeof(STATPARMS)
  59.  
  60. /* The following global handle
  61.     could have been local to Ufstat.C, but this way I upset more
  62.     German developers (just kidding, Hans!)
  63.     The global CAN be avoided if one desires to search the FRAME
  64.     window for a child having an ID of STATUS_FID (defined above)
  65. */
  66. EXTERN HWND hwndStatus;