source: dev/trunk/ab5.0/abdev/ProjectEditor/TabCtrl.h @ 440

Last change on this file since 440 was 24, checked in by dai_9181, 16 years ago

保存されていないドキュメントのタブに(*)をつける機能に対応。
MDITEXTEDITINFOをCMdiTextEditに変更。今後、オブジェクト指向化を進める。

File size: 1.0 KB
Line 
1
2
3class CMainTab{
4    HFONT hBoldFont;
5
6    //アイテム文字列を元にインデックスを取得する
7    int SearchItemIndex( const char *lpszText );
8
9    //アイテム文字列を変更する
10    void SetItemText( int index, const char *ItemText );
11
12    //アイテム文字列を取得する
13    void GetItemText( int index, char *ItemText );
14
15    //アスタリスク表示かどうかを調べる(true/変更あり, false/変更なし)
16    bool IsModified( int index );
17
18public:
19    HWND hTab;
20
21    CMainTab(HWND hParent);
22    ~CMainTab();
23
24    //アイテムを挿入
25    void InsertItem( const char *lpszText, bool isResize, COLORREF color = -1 );
26
27    //アイテムを削除
28    void DeleteItem( const char *lpszText, bool isResize );
29
30    //アイテムの名前を変更
31    void RenameItem( const char *lpszOldText, const char *lpszNewText );
32
33    //変更あり通知
34    void NofityModifyDocument( const char *ItemText );
35
36    //変更なし通知
37    void NofityUnModifyDocument( const char *ItemText );
38
39    COLORREF GetItemColor( char *ItemText );
40
41    void SelChangeEvent();
42    void MdiActiveEvent(char *lpszText);
43
44    void draw(HDC hdc);
45};
46extern CMainTab *pobj_MainTab;
Note: See TracBrowser for help on using the repository browser.