DoModal geht nicht wegen RichEdit ?



  • Heiho

    ich hab in meiner app ein dialog hinzugefuegt welches in {beim menue klick} mit DoModel aufrufe

    void COwnDoc::OnWatchLog()
    {
        CShowLog ShowLogDlg;
        ShowLogDlg.DoModal();
    }
    

    aber sobald ich in dem dialog ein RichEdit2 rein zieh, returnt das DoModal immer -1

    edit control, static text sowie buttons geht alles problemlos ?!

    ich bin verwirrt - was is da los ?
    das RichEdit hat bisher keine variable oder klasse - einfach nur reingezogen und die settings eingestellt

    benutz VS 2005 Pro



  • MSDN schrieb:

    Important If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function.

    🙂



  • ups

    #duck....wegrenn

    danke frau estartu {grad erst durch anderen thread gemerkt das du frau sein, ich entruestet und entsetzt - frauenbild kaputt sein #gg}



  • Wobei ich würde "AfxInitRichEdit2" verwenden!


Anmelden zum Antworten