身上起包很痒怎么办:FindText函数使用问题请教?

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 20:45:49
UINT uFindReplaceMsg; // message identifier for FINDMSGSTRING
uFindReplaceMsg = RegisterWindowMessage(FINDMSGSTRING);
FINDREPLACE fr; // common dialog box structure
static char szFindWhat[80]; // buffer receiving string
HWND hfdlg = NULL; // handle to Find dialog box

// Initialize FINDREPLACE
ZeroMemory(&fr, sizeof(fr));
fr.lStructSize = sizeof(fr);
fr.hwndOwner = hWndEdit;
fr.lpstrFindWhat = szFindWhat;
fr.wFindWhatLen = 80;
fr.Flags = 0;

hfdlg = FindText(&fr);

接着怎么写?小菜查msdn,好象还要用到IsDialogMessage这个函数?
要用api实现象记事本上的查找功能,怎么写?..谁能给个例子,大致讲讲思路也行.谢谢了