Click here to Skip to main content
15,920,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalchanging read-only CEdit background color Pin
Kuniva7-Jan-02 9:36
Kuniva7-Jan-02 9:36 
GeneralRe: changing read-only CEdit background color Pin
Joaquín M López Muñoz7-Jan-02 10:19
Joaquín M López Muñoz7-Jan-02 10:19 
GeneralRe: changing read-only CEdit background color Pin
Tim Deveaux7-Jan-02 10:30
Tim Deveaux7-Jan-02 10:30 
GeneralStored procedure ADO Pin
youssef7-Jan-02 8:35
youssef7-Jan-02 8:35 
GeneralSetMenuItemBitmaps() and GetSystemMetrics() Pin
7-Jan-02 8:25
suss7-Jan-02 8:25 
GeneralCTime, strftime, Format, %z/%Z Pin
Tomasso7-Jan-02 6:44
Tomasso7-Jan-02 6:44 
GeneralRe: CTime, strftime, Format, %z/%Z Pin
Mike Eriksson8-Jan-02 0:03
Mike Eriksson8-Jan-02 0:03 
GeneralWebBrowser-Control: FileDownload-Event Pin
7-Jan-02 5:46
suss7-Jan-02 5:46 
Hello everybody!

I've got the following problem: my app uses a WebBrowser-Control, but I don't receive the FileDownload-Event, which would allow to suppress the Download-Dialog.

I'm using the following code:

// Declaration of the Eventsink Map
BEGIN_EVENTSINK_MAP(CMainWnd, CFrameWnd)
  ON_EVENT(CMainWnd, IDC_WEBBROWSER, 270 /* FileDownload */, OnFileDownload, VTS_PBOOL)
END_EVENTSINK_MAP()
//
// ...
//
// Implementation of the Event Handler Function
void CMainWnd::OnFileDownload(BOOL FAR* Cancel) 
{
  AfxMessageBox("Why is this message never displayed?");
}


Has anybody got an idea why this doesn't work? Thanks in advance for an evetual answer!

--flo
GeneralUNICODE file I/O Pin
7-Jan-02 5:15
suss7-Jan-02 5:15 
GeneralRe: UNICODE file I/O Pin
7-Jan-02 5:55
suss7-Jan-02 5:55 
GeneralEmbed objects with custom icons in a CRichEditCtrl Pin
7-Jan-02 3:45
suss7-Jan-02 3:45 
GeneralAdding buttons Pin
Rickard Andersson207-Jan-02 3:07
Rickard Andersson207-Jan-02 3:07 
GeneralHelp with CRectTracker Pin
Eugene Pustovoyt7-Jan-02 2:02
Eugene Pustovoyt7-Jan-02 2:02 
GeneralRe: Help with CRectTracker Pin
Roger Allen7-Jan-02 4:43
Roger Allen7-Jan-02 4:43 
GeneralRe: Help with CRectTracker Pin
Eugene Pustovoyt7-Jan-02 19:29
Eugene Pustovoyt7-Jan-02 19:29 
GeneralRe: Help with CRectTracker Pin
7-Jan-02 17:24
suss7-Jan-02 17:24 
GeneralRe: Help with CRectTracker Pin
Eugene Pustovoyt7-Jan-02 19:34
Eugene Pustovoyt7-Jan-02 19:34 
GeneralReverse engineering Pin
Jon Newman7-Jan-02 1:19
Jon Newman7-Jan-02 1:19 
GeneralRe: Reverse engineering Pin
Jon Sagara7-Jan-02 1:32
Jon Sagara7-Jan-02 1:32 
GeneralRe: Reverse engineering Pin
Tim Smith7-Jan-02 1:58
Tim Smith7-Jan-02 1:58 
QuestionUpdate for Microsoft eMbedded Tools 3.0? Pin
Jasmyn7-Jan-02 0:28
Jasmyn7-Jan-02 0:28 
AnswerRe: Update for Microsoft eMbedded Tools 3.0? Pin
Nish Nishant7-Jan-02 0:32
sitebuilderNish Nishant7-Jan-02 0:32 
AnswerRe: Update for Microsoft eMbedded Tools 3.0? Pin
Gert Boddaert7-Jan-02 2:08
Gert Boddaert7-Jan-02 2:08 
AnswerRe: Update for Microsoft eMbedded Tools 3.0? Pin
Tim Smith7-Jan-02 16:06
Tim Smith7-Jan-02 16:06 
GeneralRe: Update for Microsoft eMbedded Tools 3.0? Pin
Gert Boddaert8-Jan-02 1:50
Gert Boddaert8-Jan-02 1:50 

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.