Click here to Skip to main content
15,906,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSet MainFrame's back color Pin
Anonymous5-Dec-02 17:00
Anonymous5-Dec-02 17:00 
GeneralRe: Set MainFrame's back color Pin
sonshiro5-Dec-02 17:51
sonshiro5-Dec-02 17:51 
GeneralSelecting a Row In a ListView Control Pin
Anonymous5-Dec-02 16:36
Anonymous5-Dec-02 16:36 
GeneralRe: Selecting a Row In a ListView Control Pin
Shog95-Dec-02 17:49
sitebuilderShog95-Dec-02 17:49 
GeneralRe: Selecting a Row In a ListView Control Pin
Jeff J5-Dec-02 18:32
Jeff J5-Dec-02 18:32 
GeneralRe: Selecting a Row In a ListView Control Pin
Shog95-Dec-02 19:30
sitebuilderShog95-Dec-02 19:30 
GeneralRe: Selecting a Row In a ListView Control Pin
Jeff J5-Dec-02 18:26
Jeff J5-Dec-02 18:26 
QuestionFunction in the article NOT defined! Can use it? Pin
zhdleonid5-Dec-02 15:33
zhdleonid5-Dec-02 15:33 
In the article,its name is "Using the CFindReplaceDialog class"

you can see it in:http://www.codeproject.com/dialog/cfindreplacedialog.asp

you can see A Function which names CMyTreeCtrl::OnFindDialogMessage


LRESULT CMyTreeCtrl::OnFindDialogMessage(WPARAM wParam, LPARAM lParam)<br />
{<br />
    ASSERT(m_pFindDialog != NULL);<br />
<br />
    // If the FR_DIALOGTERM flag is set,<br />
    // invalidate the handle identifying the dialog box.<br />
    if (m_pFindDialog->IsTerminating())<br />
    {<br />
        m_pFindDialog = NULL;<br />
        return 0;<br />
    }<br />
<br />
    // If the FR_FINDNEXT flag is set,<br />
    // call the application-defined search routine<br />
    // to search for the requested string.<br />
    if(m_pFindDialog->FindNext())<br />
    {<br />
        //read data from dialog<br />
        CString FindName = m_pFindDialog->GetFindString();<br />
        bool bMatchCase = m_pFindDialog->MatchCase() == TRUE;<br />
        bool bMatchWholeWord = m_pFindDialog->MatchWholeWord() == TRUE;<br />
        bool bSearchDown = m_pFindDialog->SearchDown() == TRUE;<br />
<br />
        //with given name do search<br />
        <big>FindWhatYouNeed(</big>FindName, bMatchCase, bMatchWholeWord, bSearchDown);<br />
    }<br />
<br />
    return 0;<br />
}



you see the Function : FindWhatYouNeed().

what is it ? user difined Function?
I Don't difined it
How can i use it ?

without it ,how can i over My FindReplace??



Study Together!
AnswerRe: Function in the article NOT defined! Can use it? Pin
Chris Losinger5-Dec-02 15:48
professionalChris Losinger5-Dec-02 15:48 
GeneralRe: Function in the article NOT defined! Can use it? Pin
zhdleonid5-Dec-02 20:20
zhdleonid5-Dec-02 20:20 
GeneralProblem with resizing in the Windows XP ! Help ! Pin
Pavel Sokolov5-Dec-02 15:31
Pavel Sokolov5-Dec-02 15:31 
GeneralCFileDialog problem, lock and not return ! Pin
jslee5-Dec-02 15:02
jslee5-Dec-02 15:02 
GeneralRe: CFileDialog problem, lock and not return ! Pin
Nitron6-Dec-02 13:55
Nitron6-Dec-02 13:55 
GeneralMSVC Multi Build/Use Configs Pin
Garth J Lancaster5-Dec-02 14:04
professionalGarth J Lancaster5-Dec-02 14:04 
QuestionCRichEdit with embedded .rtf? Pin
paposo5-Dec-02 13:07
paposo5-Dec-02 13:07 
AnswerRe: CRichEdit with embedded .rtf? Pin
Nitron6-Dec-02 13:51
Nitron6-Dec-02 13:51 
GeneralRe: CRichEdit with embedded .rtf? Pin
Anonymous7-Dec-02 4:52
Anonymous7-Dec-02 4:52 
GeneralKeyboard Monitoring Pin
Don Grout5-Dec-02 12:01
Don Grout5-Dec-02 12:01 
GeneralRe: Keyboard Monitoring Pin
Paul M Watt5-Dec-02 12:35
mentorPaul M Watt5-Dec-02 12:35 
GeneralRe: Keyboard Monitoring Pin
Don Grout5-Dec-02 19:42
Don Grout5-Dec-02 19:42 
GeneralConnecting to internet Pin
S O S5-Dec-02 10:05
S O S5-Dec-02 10:05 
GeneralRe: Connecting to internet Pin
User 66585-Dec-02 10:09
User 66585-Dec-02 10:09 
GeneralRe: Connecting to internet Pin
S O S5-Dec-02 10:38
S O S5-Dec-02 10:38 
GeneralPaint problem Pin
Brigg Thorp5-Dec-02 10:05
Brigg Thorp5-Dec-02 10:05 
GeneralRe: Paint problem Pin
Paul M Watt5-Dec-02 10:15
mentorPaul M Watt5-Dec-02 10:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.