home *** CD-ROM | disk | FTP | other *** search
- // ASCII Table 1.0
- // Copyright 1998 by D.J. van Enckevort
- // This program and sourcecode is released as freeware
- // You can use this code for your own programs
- // If you use it, please keep a notice of this copyright
-
- // Resource IDs
- // Resource IDs for the main window
- #define DLG_ASCII 100
- #define SET_ASCII 101
- #define MLE_TEXT 102
- #define PB_COPY 103
- #define PB_CLEAR 104
- #define PB_FONT 105
- #define ST_FONT 106
- #define PB_ABOUT 107
- // Resource IDs for the About messagebox
- #define DLG_ABOUT 200
- #define ST_TITLE 201
- #define ST_COPYRIGHT 202
- #define ST_AUTHOR 203
- #define ST_EMAIL 204
- #define PB_OK 205
-
- #define UM_RESIZE WM_USER+100
-
- // Declaration of global variables
- extern HAB hab; // Handle to anchor block
-
- // Declaration of global functions
- void main(int argc, char *argv[]);
- // Window procedure for the main window
- MRESULT EXPENTRY WinProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
- // Window procedure for the About messagebox
- MRESULT EXPENTRY AboutProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
- // Function to resize and move controls
- // Parameters:
- // hwnd Window handler of the main window
- // oldframe & newframe SWP structures which contain the old & new sizes of the main window
- // used to calculate the new size and position of the client window
- // ID Resource ID of the client window
- void Resize(HWND hwnd, SWP oldframe, SWP newframe, ULONG ID);
- // Function to move controls
- // Parameters:
- // hwnd Window handler of the main window
- // oldframe & newframe SWP structures which contain the old & new sizes of the main window
- // ID Resource ID of the client window
- void Move(HWND hwnd, SWP oldframe, SWP newframe, ULONG ID);