Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhazgrep.h
[詳解]
1/*==========================================================================*/
2/* Lhaz grep処理 lhaz@chitora.jp */
3/*==========================================================================*/
4#ifndef _LHAZGREP_H
5#define _LHAZGREP_H
6
7#include "altstr.hpp"
8#include "windows.h"
9
10#define WIDTH(x) (x.right - x.left)
11#define HEIGHT(y) (y.bottom - y.top)
12
13class LHAZ;
14
15class LHAZGREP {
16public:
17 LHAZGREP(const WSTR& str, const WSTR& file, const WSTR& dispfile, LHAZ* lhaz);
18 ‾LHAZGREP(void);
19 void Grep(void);
20
21private:
22 LHAZ* Lhaz; /* 本体 */
23 WSTR Str; /* 検索文字列 */
24 WSTR File; /* 検索対象ファイル */
25 WSTR DispFile; /* 表示ファイル名 */
26 int Size; /* 検索対象ファイルサイズ */
27 HANDLE HandleF; /* 検索対象ファイルハンドル */
28 HANDLE HandleFM; /* ファイルマッピングハンドル */
29 LPVOID Pointer; /* メモリマップトファイルポインタ */
30
31};
32
33class LHAZEDIT {
34public:
35 LHAZEDIT(HWND parent, const WSTR& grepstr, LHAZ* lhaz);
36 ‾LHAZEDIT(void);
37 void AddString(const WSTR& str);
38
39private:
40 static const TCHAR LHAZEDITCLS[]; /* クラス名 */
41 //
42 static bool Initialized; /* 初期化済みフラグ */
43 static HFONT HFont; /* フォントハンドル */
44 static int ObjCnt; /* インスタンス数 */
45 //
46 LHAZ* Lhaz; /* 本体 */
47 HWND Hwnd; /* ウィンドウハンドル */
48 HWND List; /* リストボックス */
49 int Extent; /* リストボックスアイテム幅 */
50 //
51 static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
52 //
53 bool Init(void);
54 bool MakeFont(void);
55 void ExecViewer(void);
56
57};
58
59#endif // _LHAZGREP_H
Definition lhazgrep.h:33
LHAZ * Lhaz
Definition lhazgrep.h:46
void AddString(const WSTR &str)
Definition lhazgrep.cpp:522
int Extent
Definition lhazgrep.h:49
static int ObjCnt
Definition lhazgrep.h:44
HWND List
Definition lhazgrep.h:48
static HFONT HFont
Definition lhazgrep.h:43
bool Init(void)
Definition lhazgrep.cpp:409
static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition lhazgrep.cpp:434
static bool Initialized
Definition lhazgrep.h:42
bool MakeFont(void)
Definition lhazgrep.cpp:548
‾LHAZEDIT(void)
Definition lhazgrep.cpp:395
static const TCHAR LHAZEDITCLS[]
Definition lhazgrep.h:40
void ExecViewer(void)
Definition lhazgrep.cpp:576
HWND Hwnd
Definition lhazgrep.h:47
Definition lhazgrep.h:15
WSTR DispFile
Definition lhazgrep.h:25
‾LHAZGREP(void)
Definition lhazgrep.cpp:233
HANDLE HandleFM
Definition lhazgrep.h:28
int Size
Definition lhazgrep.h:26
WSTR Str
Definition lhazgrep.h:23
LHAZ * Lhaz
Definition lhazgrep.h:22
HANDLE HandleF
Definition lhazgrep.h:27
LPVOID Pointer
Definition lhazgrep.h:29
void Grep(void)
Definition lhazgrep.cpp:249
WSTR File
Definition lhazgrep.h:24
Main Class
Definition lhaz.h:47