Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to judge IE have opened a page? Pin
legen xie29-Apr-02 21:17
legen xie29-Apr-02 21:17 
AnswerRe: how to judge IE have opened a page? Pin
moliate30-Apr-02 6:54
moliate30-Apr-02 6:54 
QuestionTransmitFile - Have anyone used it??? Pin
Sameer Maggon29-Apr-02 21:15
Sameer Maggon29-Apr-02 21:15 
GeneralRegistry Handling Pin
Sameer Maggon29-Apr-02 21:00
Sameer Maggon29-Apr-02 21:00 
GeneralRe: Registry Handling Pin
Jack Handy29-Apr-02 21:53
Jack Handy29-Apr-02 21:53 
GeneralRe: Registry Handling Pin
Sameer Maggon29-Apr-02 21:54
Sameer Maggon29-Apr-02 21:54 
GeneralRe: Registry Handling Pin
Sonu Kapoor29-Apr-02 23:09
Sonu Kapoor29-Apr-02 23:09 
Generalno one can figure it out... Pin
thundercatzlair29-Apr-02 20:36
thundercatzlair29-Apr-02 20:36 
Hey~

I think I may have found a bug in Visual C++ with MFC. Could someone please either confirm it as a bug or offer a suggestion to fix the problem?

I've overridden PreTranslateMessage and OnInitDialog for every dialog in my app as per MSDN to support Accelerators... I even communicated with Paul DiLascia about this. Plus I've overriden ProcessMessageFilter and InitInstance in my main app class to support application wide accelerators. Everything works fine, EXCEPT when the focus of my application is on the WebBrowser control that I have on a dialog, and I hit the Ctrl+O key combination. I have set up my accelerator resource to map Ctrl+O to a function that I have. This function never gets called. If the focus of my app is ANYWHERE besides in the WebBrowser control, it works perfectly.

Is this a bug?

I placed TRACE calls in my PreTranslateMessage and ProcessMessageFilter functions to observe what was happening when I tried the various "hotkey" combinations. Everything worked as expected, but when I tried the Ctrl+O while the focus was on the WebBrowser control and the following message was displayed in the debug output for the app within Visual C++ 6.0.

Loaded 'C:\WINDOWS\SYSTEM\BROWSEUI.DLL', no matching symbolic information found.

I don't know if that will help anyone figure this out, but...

It seems as if the WebBrowser control is capturing the Ctrl+O and discarding it. Shouldn't the ProcessMessageFilter in my main app class capture this before any control gets a chance to?

I've been trying to figure this out for about 2 weeks now... someone HAS to know how to fix this...

Thanks in advance,
thundercatzlair
GeneralRe: no one can figure it out... Pin
Christian Graus29-Apr-02 20:46
protectorChristian Graus29-Apr-02 20:46 
GeneralRe: no one can figure it out... Pin
thundercatzlair29-Apr-02 21:15
thundercatzlair29-Apr-02 21:15 
GeneralRe: no one can figure it out... Pin
Roger Allen30-Apr-02 0:28
Roger Allen30-Apr-02 0:28 
GeneralCASyncSocket && receive Pin
Kristian3329-Apr-02 20:34
Kristian3329-Apr-02 20:34 
GeneralRe: CASyncSocket && receive Pin
lucy30-Apr-02 4:22
lucy30-Apr-02 4:22 
GeneralRe: CASyncSocket && receive Pin
1-May-02 19:48
suss1-May-02 19:48 
Questionhow will i get rid of that? Pin
Atilla Selem29-Apr-02 20:19
Atilla Selem29-Apr-02 20:19 
AnswerRe: how will i get rid of that? Pin
Christian Graus29-Apr-02 20:28
protectorChristian Graus29-Apr-02 20:28 
GeneralRe: how will i get rid of that? Pin
Atilla Selem29-Apr-02 23:40
Atilla Selem29-Apr-02 23:40 
QuestionFirst Thread:IHTMLImgElement::put_src(BSTR) does not work? Pin
29-Apr-02 20:04
suss29-Apr-02 20:04 
GeneralBest Method for Screen Shot Pin
Sameer Maggon29-Apr-02 19:24
Sameer Maggon29-Apr-02 19:24 
GeneralRe: Best Method for Screen Shot Pin
Jon Sagara29-Apr-02 19:43
Jon Sagara29-Apr-02 19:43 
GeneralRe: Best Method for Screen Shot Pin
Christian Graus29-Apr-02 20:19
protectorChristian Graus29-Apr-02 20:19 
QuestionHow to programmaticly assign two NICs the same IP Pin
29-Apr-02 18:30
suss29-Apr-02 18:30 
AnswerRe: How to programmaticly assign two NICs the same IP Pin
Mike Nordell1-May-02 9:08
Mike Nordell1-May-02 9:08 
GeneralMajor Multithread Problem :: MFC Pin
valikac29-Apr-02 17:49
valikac29-Apr-02 17:49 
GeneralRe: Major Multithread Problem :: MFC Pin
Neville Franks30-Apr-02 2:15
Neville Franks30-Apr-02 2: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.