Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Status Of Object. Pin
Christian Graus3-Feb-04 17:49
protectorChristian Graus3-Feb-04 17:49 
GeneralRe: Status Of Object. Pin
kimsangwoo3-Feb-04 19:16
kimsangwoo3-Feb-04 19:16 
GeneralRe: Status Of Object. Pin
Steve S3-Feb-04 22:58
Steve S3-Feb-04 22:58 
GeneralSerial project in Visual C++ problem Pin
rmnowick3-Feb-04 12:32
rmnowick3-Feb-04 12:32 
GeneralRe: Serial project in Visual C++ problem Pin
rmnowick4-Feb-04 8:42
rmnowick4-Feb-04 8:42 
Questionhow to print to a specific tray of a printer Pin
asawari3-Feb-04 11:36
asawari3-Feb-04 11:36 
AnswerRe: how to print to a specific tray of a printer Pin
basementman3-Feb-04 16:47
basementman3-Feb-04 16:47 
GeneralCapture windows messages Pin
benny23233-Feb-04 10:22
benny23233-Feb-04 10:22 
Hi,

I want to filter all the windows messages to my MFC application before dispatching them to the main window or its child windows. I decided to override the PreTranslateMessage of my main application (CWinApp) to filter these messages. It works fine for the main frame window, menu, etc. I can capture all the mouse clicks, key presses, etc on the main frame, and its child dialog windows.

However, if my customized dialog classes are inherited from CFileDialog, CPageSetupDialog, CPrintDialog, etc, (all those subclasses of CCommonDialog), the PreTranslateMessage will not capture the messages for
these types of dialogs. It seems only work when my dialog classes are inherited from CDialog directly.

Does any one know how to fix this ? I don't want to add specific event handlers to each of these dialogs cause i don't to duplicate my filter code everywhere. Thanks for your help in advance.

Best Regards,
Benny Levin
GeneralRe: Capture windows messages Pin
Neville Franks3-Feb-04 10:27
Neville Franks3-Feb-04 10:27 
GeneralRe: Capture windows messages Pin
Anonymous4-Feb-04 11:58
Anonymous4-Feb-04 11:58 
Generalstill can't use SQL database Pin
halblonious3-Feb-04 10:12
halblonious3-Feb-04 10:12 
GeneralRe: still can't use SQL database Pin
Vic Mackey3-Feb-04 10:24
Vic Mackey3-Feb-04 10:24 
GeneralRe: still can't use SQL database Pin
halblonious3-Feb-04 10:54
halblonious3-Feb-04 10:54 
GeneralRe: still can't use SQL database Pin
Vic Mackey3-Feb-04 11:23
Vic Mackey3-Feb-04 11:23 
GeneralRe: still can't use SQL database Pin
Steve S3-Feb-04 23:01
Steve S3-Feb-04 23:01 
GeneralBrowse info for struct elements in C versus C++ files Pin
Bob Farrell3-Feb-04 10:05
Bob Farrell3-Feb-04 10:05 
GeneralObtain Windows Handle Pin
Grahamfff3-Feb-04 9:23
Grahamfff3-Feb-04 9:23 
GeneralRe: Obtain Windows Handle Pin
John R. Shaw3-Feb-04 9:38
John R. Shaw3-Feb-04 9:38 
GeneralRe: Obtain Windows Handle Pin
Neville Franks3-Feb-04 10:17
Neville Franks3-Feb-04 10:17 
GeneralRe: Obtain Windows Handle Pin
basementman3-Feb-04 16:50
basementman3-Feb-04 16:50 
GeneralVC++ - WinXP vs Win2k + ODBC + Dbase files Pin
Qadddd3-Feb-04 8:17
Qadddd3-Feb-04 8:17 
GeneralRe: VC++ - WinXP vs Win2k + ODBC + Dbase files Pin
basementman3-Feb-04 16:52
basementman3-Feb-04 16:52 
GeneralRe: VC++ - WinXP vs Win2k + ODBC + Dbase files Pin
Qadddd3-Feb-04 23:17
Qadddd3-Feb-04 23:17 
General"File I/O notifications" question Pin
agrafov3-Feb-04 7:57
agrafov3-Feb-04 7:57 
GeneralRe: "File I/O notifications" question Pin
Neville Franks3-Feb-04 10:24
Neville Franks3-Feb-04 10:24 

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.