CFanatic

Go Back   CFanatic > Programming > Win32 Programming

Join CFanatic Forum Now

Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog topic posted under Win32 Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2007, 07:09 AM
Junior Member
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
JuggernautMsn is on a distinguished road
| More
Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog

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,
Reply With Quote
  #2  
Old 11-24-2009, 02:28 AM
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
zhd6392 is on a distinguished road
| More
Re: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dial

hello:

Have you resolved your question?
Could you tell me how to hook into the file/open save dialog boxes and manipulate them.I hope you could give me some codde ^_^.my email is zyf6392@yahoo.ca

I will be greatful if you could help me.
Thanks and regards.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
techfest 2008 and microsoft present knockout!! harishreddy.iit Contests 2 04-28-2009 07:47 PM
runtime error in windows server 2003 gangadhar.bonda Introduce yourself 0 05-09-2008 01:35 AM
Access 2007 file not accessible codeunlock C# Programming 0 04-29-2007 12:40 AM
Windows 2003 Support AmilHanish Win32 Programming 0 09-29-2006 06:52 AM
A Microsoft keyboard for the upper crust NewsBot News 0 09-16-2006 09:38 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 02:20 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board