home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / ript16 / inlude / rip_tabs.h
Encoding:
C/C++ Source or Header  |  1994-04-16  |  2.4 KB  |  93 lines

  1. /**************************************************************************
  2.     RipTABS - Tab Folder Dialog  Version 2.00  (April 15 ,1994)
  3.  
  4.     (c) 1993, 1994 Jonathan Carroll - All Rights Reserved
  5. **************************************************************************/
  6.  
  7.  
  8. void RipTABRegister();
  9. void RipTABUnregister();
  10. CString* CStringPtr(const char*);
  11.  
  12.  
  13. class CTabTitle;
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CTabDialog dialog
  17.  
  18. class CTabDialog : public CDialog
  19. {
  20. // Construction
  21. public:
  22.     CTabDialog(int theDialog, CWnd* pParent = NULL);    // standard Modal constructor
  23.     CTabDialog();    // standard Modeless constructor
  24.     ~CTabDialog();
  25.     
  26.     void NextTab();
  27.     void PrevTab();
  28.  
  29.     CString&             ActiveTabText() { return rtab_ActiveTabText; };
  30.     int                     TabTextYpos() { return rtab_TabTextPos; };
  31.     int                        rtab_LastActiveTab, rtab_ActiveTab;
  32.     
  33.     BOOL                    m_TabHasFocus;
  34.     CPtrArray*        rtab_OptionsList[2];
  35.     afx_msg void     OnLButtonDown(UINT flags, CPoint point);
  36.     
  37.  
  38. // Implementation
  39. protected:
  40.  
  41.     void InitData(CPtrArray* theOptionsList1, CPtrArray* theOptionsList2, int TheStaticBox);
  42.     // Generated message map functions
  43.     //{{AFX_MSG(CTabDialog)
  44.     virtual void OnOK();
  45.     virtual void OnCancel();
  46.     virtual BOOL OnInitDialog();
  47.     //}}AFX_MSG
  48.     afx_msg void OnPaint();
  49.     
  50.     virtual void SwitchToNotification(int TabIndex, CString* TabName);
  51.     virtual void SwitchFromNotification(int TabIndex, CString* TabName);
  52.  
  53.  
  54.     DECLARE_MESSAGE_MAP()
  55.  
  56. private:
  57.  
  58.     void FAR*                                     rtab_lpsectiondir;
  59.  
  60.     CPtrArray                                    rtab_RectArray;
  61.   CWordArray                                rtab_SectionIndexArray;
  62.  
  63.     int                                                 rtab_FTabWidth, rtab_Space, rtab_NumAccross;
  64.     int                                                rtab_TabLines, rtab_LineHeight;
  65.     int                                                rtab_OrderList[20];
  66.     int                                                rtab_IDC_CSTATIC;
  67.     int                                                rtab_LineOffset;
  68.     CRect                                            rtab_BoxRect;
  69.     CFont*                                        rtab_DlgFont;
  70.     CWordArray                      rtab_RowHeaderList;
  71.     CTabTitle*                                TabTitle;
  72.     CString                                        rtab_ActiveTabText; 
  73.     int                                                rtab_TabTextPos;
  74. };
  75.  
  76. class CTabTitle : public CWnd
  77. {
  78.     public:
  79.     CTabTitle(CTabDialog* pParent, RECT& theRect);
  80.     void PostNcDestroy();
  81.     afx_msg void OnPaint();
  82.     void RePosition(HWND hwndInsertAfter); 
  83.     afx_msg void OnSetFocus(CWnd* OldWnd);  
  84.     afx_msg void OnKillFocus(CWnd* NewWnd);
  85.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  86.     
  87.     private:
  88.     CTabDialog* Parent;
  89.     BOOL                HaveFocus;
  90.  
  91.     DECLARE_MESSAGE_MAP()
  92. };
  93.