主题:FindText函数使用问题请教?
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这个函数?
要用sdk实现象记事本上的查找功能,怎么写?菜鸟请教..谁能最好给个例子(最好),大致讲讲思路也行.谢谢了
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这个函数?
要用sdk实现象记事本上的查找功能,怎么写?菜鸟请教..谁能最好给个例子(最好),大致讲讲思路也行.谢谢了