home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / ript32 / include / rip_tabs.h
Encoding:
C/C++ Source or Header  |  1994-03-21  |  2.2 KB  |  76 lines

  1. /**************************************************************************
  2.     RipTABS - Tab Folder Dialog Library.
  3.  
  4.     (c) 1993, 1994 Jonathan Carroll - All Rights Reserved
  5.     
  6.     To view this file properly, set your editor's TAB size to *2* spaces.
  7. **************************************************************************/
  8.  
  9. BOOL CALLBACK PositionDlgChildProc(HWND hWnd, LPARAM lParam);
  10. CString* CStringPtr(const char*);
  11. void DrawHTab(CDC& dc, CSize& Size, int& xpos, int& lastxpos, int& ypos, int& Space, CPen& GreyPen, 
  12.                             BOOL active, BOOL LastTab, int RightMargin, int LeftMargin, int Line);
  13.  
  14.  
  15.  
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CTabDialog dialog
  19.  
  20. class CTabDialog : public CDialog
  21. {
  22. // Construction
  23. public:
  24.     CTabDialog(int theDialog, CWnd* pParent = NULL);    // standard constructor
  25.     ~CTabDialog();
  26.     
  27.  
  28. // Implementation
  29. protected:
  30.  
  31.     // Dynamically resizes dialog, and sets up internal structures
  32.     void InitData(CPtrArray* theOptionsList1, CPtrArray* theOptionsList2, int TheStaticBox);
  33.  
  34.     // Message Map Responders
  35.     virtual void OnOK();
  36.     virtual void OnCancel();
  37.     virtual BOOL OnInitDialog();
  38.     afx_msg void OnPaint();
  39.     
  40.     // Notification functions that get sent after user switches
  41.     // dialog pages
  42.     virtual void SwitchToNotification(int TabIndex, CString* TabName);
  43.     virtual void SwitchFromNotification(int TabIndex, CString* TabName);
  44.  
  45.  
  46.     // Trap Left-button mouse clicks
  47.     afx_msg void OnLButtonDown(UINT flags, CPoint point);
  48.  
  49.     DECLARE_MESSAGE_MAP()
  50.  
  51. // Private Functions
  52. private:
  53.     void NextTab();
  54.     void PrevTab();
  55.  
  56.  
  57. // Private Member Variables
  58. private:
  59.  
  60.     void*                                             rtab_lpsectiondir;
  61.  
  62.     CPtrArray*                                  rtab_OptionsList[2];
  63.     CPtrArray                                    rtab_RectArray;
  64.   CWordArray                                rtab_SectionIndexArray;
  65.  
  66.     int                                                 rtab_FTabWidth, rtab_Space, rtab_NumAccross;
  67.     int                                                rtab_LastActiveTab, rtab_ActiveTab, rtab_TabLines, rtab_LineHeight;
  68.     int                                                rtab_OrderList[20];
  69.     int                                                rtab_IDC_CSTATIC;
  70.     int                                                rtab_LineOffset;
  71.     CRect                                            rtab_BoxRect;
  72.     CFont*                                        rtab_DlgFont;
  73.     CWordArray                      rtab_RowHeaderList;
  74. };
  75.   
  76.