Click here to Skip to main content
15,889,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stop list view items from being sorted Pin
Hamid_RT5-Aug-07 3:53
Hamid_RT5-Aug-07 3:53 
GeneralRe: Stop list view items from being sorted Pin
Perspx5-Aug-07 4:46
Perspx5-Aug-07 4:46 
Questionmutex problem Pin
VC_RYK4-Aug-07 5:56
VC_RYK4-Aug-07 5:56 
AnswerRe: mutex problem Pin
Mark Salsbery4-Aug-07 6:45
Mark Salsbery4-Aug-07 6:45 
GeneralRe: mutex problem Pin
VC_RYK4-Aug-07 7:12
VC_RYK4-Aug-07 7:12 
GeneralRe: mutex problem Pin
Mark Salsbery4-Aug-07 8:32
Mark Salsbery4-Aug-07 8:32 
GeneralRe: mutex problem Pin
JudyL_MD6-Aug-07 2:31
JudyL_MD6-Aug-07 2:31 
QuestionSubclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
JuggernautMsn4-Aug-07 2:23
JuggernautMsn4-Aug-07 2:23 
Hello everybody,

I am in the middle of a project that involves hooking the file/open save and browse for folder dialog boxes of he currently installed windows applications and manipulate them by sending windows message codes.

I am stuck with a problem in doing that.

I have been able to hook into the file/open save dialog boxes and manipulate them , when the applications (Notepad,Wordpad,Adobe Acrobat etc.) uses the windows common control dialogs (i.e Common Dialog Box Library).The window class type of these type of dialogs is #32770(Dialog).

But the microsoft office suite doesnot use this library to generate the file open / save dialogs. The class type for the

MS Office dialogs is "bosa_sdm_Microsoft Office * " , where the " * " stands for Word,Excel,Access etc.

The MSDN states that

The following are messages that a hook procedure can send to an Explorer-style Open or Save As dialog box.

CDM_GETFILEPATH
CDM_GETFOLDERIDLIST
CDM_GETFOLDERPATH
CDM_GETSPEC
CDM_HIDECONTROL
CDM_SETCONTROLTEXT
CDM_SETDEFEXT

But unfortunately sending these messages using

LRESULT SendMessage(
HWND hWnd, // handle to destination window
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);

won't do any good in case of Microsoft Office dialogs.

The MSDN also doesnot state what messages I can send to the office dialogs from the hook function to manipulate them or retrieve retrieve information regarding the current folder/file path within the office dialog.

So I am requesting everybody here to provide me the required guidance.

I will be greatful if you people can provide anything useful.

Thanks and regards,

AnswerRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Mark Salsbery4-Aug-07 6:48
Mark Salsbery4-Aug-07 6:48 
AnswerRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Force Code4-Aug-07 9:28
Force Code4-Aug-07 9:28 
GeneralRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Force Code4-Aug-07 13:41
Force Code4-Aug-07 13:41 
GeneralRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
JuggernautMsn6-Aug-07 10:07
JuggernautMsn6-Aug-07 10:07 
QuestionPC wakeup from hibernation using SetWaitableTimer() Pin
Still learning how to code4-Aug-07 1:36
Still learning how to code4-Aug-07 1:36 
AnswerRe: PC wakeup from hibernation using SetWaitableTimer() Pin
Still learning how to code5-Aug-07 2:17
Still learning how to code5-Aug-07 2:17 
QuestionProblem with OnDrawClipboard Pin
dSolariuM4-Aug-07 1:12
dSolariuM4-Aug-07 1:12 
QuestionTapi reconnection Pin
mehrdadov4-Aug-07 0:06
mehrdadov4-Aug-07 0:06 
QuestionVS 2003 Tab Controls Pin
Code_Ray3-Aug-07 13:08
Code_Ray3-Aug-07 13:08 
AnswerRe: VS 2003 Tab Controls Pin
Mark Salsbery3-Aug-07 13:37
Mark Salsbery3-Aug-07 13:37 
AnswerRe: VS 2003 Tab Controls Pin
Michael Dunn3-Aug-07 14:48
sitebuilderMichael Dunn3-Aug-07 14:48 
AnswerRe: VS 2003 Tab Controls Pin
bob169723-Aug-07 16:15
bob169723-Aug-07 16:15 
QuestionPrinting in MFC [modified] Pin
hxhl953-Aug-07 12:30
hxhl953-Aug-07 12:30 
AnswerRe: Printing in MFC Pin
bob169723-Aug-07 16:02
bob169723-Aug-07 16:02 
QuestionRe: Printing in MFC Pin
hxhl953-Aug-07 19:32
hxhl953-Aug-07 19:32 
AnswerRe: Printing in MFC Pin
bob169724-Aug-07 3:41
bob169724-Aug-07 3:41 
GeneralRe: Printing in MFC Pin
hxhl954-Aug-07 6:36
hxhl954-Aug-07 6:36 

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.