home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
samples
/
bidi
/
hebrew
/
teldir
/
teldir.h
< prev
next >
Wrap
Text File
|
1999-05-11
|
5KB
|
148 lines
/* --------------------------- */
/* teldir - header file */
/* --------------------------- */
/* Identifiers Predeclarations */
#define DID_OK 1
#define DID_CANCEL 2
#define ID_ABOUT 3
#define MAX_NAMES 100 /* maximum number of entries in */
/* the telephone directory */
#define IDM_ORGMENU 9000
#define IDM_FILE 9001
#define IDM_VIEW 9002
#define IDM_HELP 9003
#define IDM_SAVE 9006
#define IDM_QUIT 9007
#define IDM_ABOUT 9008
#define IDM_ASCENDING 9009
#define IDM_DESCENDING 9010
#define IDM_OK 9011
#define IDM_HEB 9012
#define IDM_ENG 9013
#define IDM_ENGLISHMENU 9014
#define IDM_LANG 9015
//Start_Help
#define IDM_HELPEXTENDED 9016
//End_Help
#define ID_NAMES_LIST 2000
#define ID_LISTBOX 2001
#define ID_CHOICES 2002
#define ID_ADDNAME 2003
#define ID_DELETE 2004
#define ID_UPDATE 2005
#define ID_SEARCH 2006
#define ID_NAME 2007
#define ID_TELEPHONE 2008
#define ID_INPUT_NAME 2009
#define ID_TELEPHONE_NUMBER 2010
#define ID_ENTER 200
#define ID_TELDIR 2
#define ID_CLOCK 3
#define ID_TIMER 100
// IDs for Hebrew Strings
#define ID_TITLE_H 500
#define ID_NAMES_H 501
#define ID_ADD_H 502
#define ID_REMOVE_H 503
#define ID_MODIFY_H 504
#define ID_FIND_H 505
#define ID_CHOICE_H 506
#define ID_ENTERNAME_H 507
#define ID_TELNUMBER_H 508
#define ID_DO_H 509
#define ID_SAVEFILE_H 510
#define ID_EXIT_H 511
#define ID_USES_H 512
#define ID_ERROR_H 513
#define ID_HELP_H 514
#define ID_ERRINADD_H 515
#define ID_ERRINMODIFY_H 516
#define ID_ERRINSEARCH_H 517
#define ID_ERRINREMOVE_H 518
#define ID_INFORMATION_H 519
#define ID_CANNOTLOADSTRING_H 520
#define ID_HELPLOADERROR_H 521
#define ID_HELPDISPLAYERROR_H 522
#define ID_HELPLIBRARYNAME_H 523
#define ID_HELPWINDOWTITLE_H 524
// IDs for English Strings (offset 100 from English)
#define ID_TITLE 600
#define ID_NAMES 601
#define ID_ADD 602
#define ID_REMOVE 603
#define ID_MODIFY 604
#define ID_FIND 605
#define ID_CHOICE 606
#define ID_ENTERNAME 607
#define ID_TELNUMBER 608
#define ID_DO 609
#define ID_SAVEFILE 610
#define ID_EXIT 611
#define ID_USES 612
#define ID_ERROR 613
#define ID_HELP 614
#define ID_ERRINADD 615
#define ID_ERRINMODIFY 616
#define ID_ERRINSEARCH 617
#define ID_ERRINREMOVE 618
#define ID_INFORMATION 619
#define ID_CANNOTLOADSTRING 620
#define ID_HELPLOADERROR 621
#define ID_HELPDISPLAYERROR 622
#define ID_HELPLIBRARYNAME 623
#define ID_HELPWINDOWTITLE 624
//Start_Help
#define HELPLIBRARYNAMELEN 20
/*--------------------------------------------------------------*\
* Help table and subtables *
\*--------------------------------------------------------------*/
#define TELDIR_HELP_TABLE 1000
/*--------------------------------------------------------------*\
* Main window help panels *
\*--------------------------------------------------------------*/
#define SUBTABLE_MAIN 3000
#define PANEL_IDM_ABOUT IDM_ABOUT
#define PANEL_IDM_FILE IDM_FILE
#define PANEL_IDM_VIEW IDM_VIEW
#define PANEL_IDM_HELP IDM_HELP
//End_Help
/* Function Pre declarations */
int main(VOID);
MRESULT EXPENTRY WinProc1(HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2);
VOID MessageBox(USHORT sMsg, USHORT sTitle);
VOID Button_Handling(VOID);
VOID SaveData(VOID);
VOID LoadFile(VOID);
VOID ChangeLayer(VOID);
VOID Heb_Interface(VOID);
VOID Eng_Interface(VOID);
PCHAR Message(USHORT);
VOID ConvertBidiString (PUCHAR, PUCHAR, ULONG, ULONG, ULONG);
VOID DisplayTitle(USHORT);
//Start_Help
VOID InitHelp(VOID);
VOID DisplayHelpPanel(LONG);
VOID DestroyHelpInstance(VOID);
//End_Help
/* type definitions */
typedef struct {
char Name[100];
char Number[10];
} TELLIST;
typedef TELLIST *PTELLIST;