source: dev/trunk/ab5.0/abdev/abdev/TabCtrl.h

Last change on this file was 829, checked in by イグトランス (egtra), 12 years ago

svn:eol-styleとsvn:mime-type(文字コード指定含む)の設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain; charset=Shift_JIS
File size: 1.0 KB
RevLine 
[829]1#pragma once
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( HWND hwnd, 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 const *ItemText );
40
41 void SelChangeEvent();
42 void MdiActiveEvent(const char *lpszText);
43
44 void draw(HDC hdc);
45};
46extern CMainTab *pobj_MainTab;
Note: See TracBrowser for help on using the repository browser.