with os2; use os2;  
with os2.jba; use os2.jba;  
package  MAINDP is 
--             Global variables.    
wMainFrame          : aliased WINDOW ;
wDialog1            : aliased WINDOW ;
--         Window/control identifiers.    
MSG_MESSAGE1        : constant long := 1; --COMMENT
IDHT_MAINFRAME      : constant long := 4001; --COMMENT
IDHT_DIALOG1        : constant long := 4002; --COMMENT
IDHT_MESSAGE1       : constant long := 4003; --COMMENT
IDHP_HELPPANELMAIN  : constant long := 5000; --COMMENT
IDD_HAND02          : constant long := 1000; --COMMENT
IDD_ICON1           : constant long := 1001; --COMMENT
IDD_HELLO           : constant long := 1002; --COMMENT
IDM_MAINMENU        : constant long := 2000; --Sub Menu               
IDM_NEWFILE         : constant long := 2001; --Menu Item              
IDM_OPENFILE        : constant long := 2002; --Menu Item              
IDM_SAVEFILE        : constant long := 2003; --Menu Item              
IDM_SAVEASFILE      : constant long := 2004; --Menu Item              
IDM_EXITMENU        : constant long := 2005; --Menu Item              
IDM_HELPMENU        : constant long := 2006; --Sub Menu               
IDM_HELPUSING       : constant long := 2007; --Menu Item              
IDM_HELPINDEX       : constant long := 2008; --Menu Item              
IDM_HELPCONTENTS    : constant long := 2009; --Menu Item              
IDM_GENERALHELP     : constant long := 2010; --Menu Item              
IDM_PRODUCTIONINFO  : constant long := 2011; --Menu Item              
IDD_MAINFRAME       : constant long := 3000; --Dialog                 
IDD_DIALOG1         : constant long := 3001; --Dialog                 
IDD_STATIC1         : constant long := 3002; --Bitmap                 
IDD_PUSHBUTTONOK    : constant long := 3003; --Push Button            
IDD_EVENT           : constant long := 3004; --Static Text            
--           Function Prototypes.         
function  MainFrameWndProc (h_wnd:HWND;msg:ULONG;mp1:PMPARAM;mp2:PMPARAM)return PMENTRY;
procedure MainFrameOpenFileClick  ;
procedure MainFrameExitMenuClick  ;
procedure MainFrameNewFileClick  ;
procedure MainFrameSaveFileClick  ;
procedure MainFrameSaveAsFileClick  ;
procedure MainFrameHelpUsingClick  ;
procedure MainFrameProductionInfoClick  ;
procedure MainFrameHelpMenuInit  ;
procedure MainFrameHelpIndexClick  ;
procedure MainFrameHelpContentsClick  ;
procedure MainFrameGeneralHelpClick  ;
function  Dialog1WndProc (h_wnd:HWND;msg:ULONG;mp1:PMPARAM;mp2:PMPARAM)return PMENTRY;
procedure Dialog1PushButtonOKClick  ;
End MAINDP ;
