home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ascii11.zip / ascii.h < prev    next >
Text File  |  1998-04-17  |  2KB  |  49 lines

  1. // ASCII Table 1.0
  2. // Copyright 1998 by D.J. van Enckevort
  3. // This program and sourcecode is released as freeware
  4. // You can use this code for your own programs
  5. // If you use it, please keep a notice of this copyright
  6.  
  7. // Resource IDs
  8. // Resource IDs for the main window
  9. #define DLG_ASCII                   100
  10. #define SET_ASCII                   101
  11. #define MLE_TEXT                    102
  12. #define PB_COPY                     103
  13. #define PB_CLEAR                    104
  14. #define PB_FONT                     105
  15. #define ST_FONT                     106
  16. #define PB_ABOUT                    107
  17. // Resource IDs for the About messagebox
  18. #define DLG_ABOUT                   200
  19. #define ST_TITLE                    201
  20. #define ST_COPYRIGHT                202
  21. #define ST_AUTHOR                   203
  22. #define ST_EMAIL                    204
  23. #define PB_OK                       205
  24.  
  25. #define UM_RESIZE WM_USER+100
  26.  
  27. // Declaration of global variables
  28. extern HAB hab; // Handle to anchor block
  29.  
  30. // Declaration of global functions
  31. void main(int argc, char *argv[]);
  32. // Window procedure for the main window
  33. MRESULT EXPENTRY WinProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  34. // Window procedure for the About messagebox
  35. MRESULT EXPENTRY AboutProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  36. // Function to resize and move controls
  37. // Parameters:
  38. // hwnd Window handler of the main window
  39. // oldframe & newframe SWP structures which contain the old & new sizes of the main window
  40. //   used to calculate the new size and position of the client window
  41. // ID Resource ID of the client window
  42. void Resize(HWND hwnd, SWP oldframe, SWP newframe, ULONG ID);
  43. // Function to move controls
  44. // Parameters:
  45. // hwnd Window handler of the main window
  46. // oldframe & newframe SWP structures which contain the old & new sizes of the main window
  47. // ID Resource ID of the client window
  48. void Move(HWND hwnd, SWP oldframe, SWP newframe, ULONG ID);
  49.