#include "resource.h" #include "../../../include/ltlst.h" // enum { MENU_FILE_POS, MENU_SERVER_POS, MENU_REMOTE_POS, MENU_WINDOW_POS, MENU_HELP_POS }; enum { MENU_IMAGE_POS = 7, MENU_COLOR_POS, }; #ifdef WIN32 #define CTLID(w, l) LOWORD(w) #else #define CTLID(w, l) (w) #endif // // Macro Definitions... // #define RECTWIDTH(rc) ((rc).right - (rc).left) #define RECTHEIGHT(rc) ((rc).bottom - (rc).top) // // Typedefs, structures... // // structure used by the IDD_CONNECT dialog typedef struct { L_TCHAR L_FAR* pszTitle; // the dialog box title L_TCHAR L_FAR* pszString; // the string buffer L_INT nStringLen; // the size of the string buffer } EDITDATA, L_FAR*pEDITDATA; // // Global Variables... // // preferences extern BOOL gbStatusBar; extern BOOL gbAutoSizeFrame; extern int gBackColour; extern BOOL gfIsRTL; extern TCHAR gachAppName[] ; extern TCHAR gachAppTitle[]; extern TCHAR gachIconName[] ; extern TCHAR gachMenuName[] ; extern TCHAR gachString[] ; extern HINSTANCE ghInstApp ; extern HWND ghWndMain ; extern HWND ghImageListDlg; extern HWND hCtl; extern L_UINT guCommandID; // // Dialog Box Procedures... // int FAR PASCAL AboutProc(HWND, UINT, UINT, LONG) ; int FAR PASCAL EditProc(HWND hDlg, UINT Message, UINT wParam, LONG lParam); /* * put up a message box. the main window ghWndMain is used as the parent * window, and the app title gachAppTitle is used as the dialog title. * the text for the dialog -idString- is loaded from the resource string table */ int MessageBoxID(UINT idString, UINT fuStyle); LPTSTR tmpString(UINT idString); int DoDialog(HWND hwndParent,int DialogID,DLGPROC fnDialog,long lParam); extern L_COMP GetRemoteComputer(); extern L_BOOL MyGetString(HWND hWnd, L_TCHAR L_FAR*pszTitle, L_TCHAR L_FAR* pszString, L_INT nStringLen); L_VOID LoadAndSend(L_INT, L_COMP); L_VOID PrepareDirectory(L_TCHAR L_FAR *, L_TCHAR L_FAR *); L_VOID AddImage(pBITMAPHANDLE); L_INT EXT_CALLBACK MagGlassCallback(HWND hWnd, L_INT nMaskPlaneStart, L_INT nMaskPlaneEnd, L_UCHAR L_FAR *pMaskPlane, L_INT nMaskPlaneSize, L_VOID L_FAR *pUserData);