Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
staticCFindReplaceDialog*PASCALGetNotifier(LPARAMlParam**);**
Return Value
A pointer to the current dialog box.
Parameters
lParam
The lparam value passed to the frame window’s OnFindReplace member function.
Remarks
Call this function to retrieve a pointer to the current Find Replace dialog box. It should be used within your callback function to access the current dialog box, call its member functions, and access the m_fr structure.
Example
// In mainframe.h
protected:
//{{AFX_MSG(CMyRichEditTestView)
...
//}}AFX_MSG
afx_msg LONG OnFindReplace(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
// Register the FINDMSGSTRING message
static WM_FINDREPLACE = ::RegisterWindowMessage(FINDMSGSTRING);
// In mainframe.cpp
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
//{{AFX_MSG_MAP
...
//}}AFX_MSG_MAP
ON_REGISTERED_MESSAGE(WM_FINDREPLACE, OnFindReplace)
LRESULT CMainFrame::OnFindReplace(WPARAM wparam, LPARAM lparam)
{
CFindReplaceDialog *pDlg = CFindReplaceDialog::GetNotifier(lparam)
if( NULL != pDlg )
{
// Use pDlg as a pointer to the existing FindReplace dlg to
// call CFindReplaceDialog member functions
}
}
CFindReplaceDialog Overview | Class Members | Hierarchy Chart