Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Trying something new Pin
Michael Dunn27-Jan-07 8:26
sitebuilderMichael Dunn27-Jan-07 8:26 
AnswerRe: Trying something new Pin
prasad_som27-Jan-07 17:41
prasad_som27-Jan-07 17:41 
Questionhow to execute other progams in c++ Pin
asp.netProgrammer27-Jan-07 6:47
asp.netProgrammer27-Jan-07 6:47 
AnswerRe: how to execute other progams in c++ Pin
CPallini27-Jan-07 7:15
mveCPallini27-Jan-07 7:15 
AnswerRe: how to execute other progams in c++ Pin
Hamid_RT27-Jan-07 19:03
Hamid_RT27-Jan-07 19:03 
AnswerRe: how to execute other progams in c++ Pin
#realJSOP28-Jan-07 0:47
professional#realJSOP28-Jan-07 0:47 
QuestionDisable standard menue items in MS-Office applications Pin
Peter Fritze27-Jan-07 5:00
Peter Fritze27-Jan-07 5:00 
AnswerRe: Disable standard menue items in MS-Office applications Pin
S Douglas27-Jan-07 23:29
professionalS Douglas27-Jan-07 23:29 
Peter Fritze wrote:
I want to force the user to save the file with the same name and path that I used to open the file when starting the application


You have an interesting problem here,

Thinking about it there are a couple of ways to accomplish what you’re looking for, but neither of them are direct or at least the little bit of searching I did revealed anything direct.


First:
Spy, the handle to that menu item and send it a disable message. I don’t know how well that would work or not.

Second:
Catch the message from DocumentBeforeSave, see examples here.


How to catch Word application events by using Visual C++[^]

Automation and Eventing with Word[^]

DocumentBeforeSave Event[^]

Hope this helps, or at least gets yea started.



I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:


Questionvc++ Pin
jeevirajan27-Jan-07 4:12
jeevirajan27-Jan-07 4:12 
AnswerRe: vc++ Pin
Jonathan [Darka]28-Jan-07 21:20
professionalJonathan [Darka]28-Jan-07 21:20 
QuestionInitialization of static variable of enum type fails? [modified] Pin
tesujix27-Jan-07 2:46
tesujix27-Jan-07 2:46 
AnswerRe: Initialization of static variable of enum type fails? Pin
Michael Dunn27-Jan-07 8:47
sitebuilderMichael Dunn27-Jan-07 8:47 
Question How To Access sql-server and design a UI with vc mfc? Pin
sepehr_vision27-Jan-07 2:22
sepehr_vision27-Jan-07 2:22 
QuestionHow to convert a array of bitmap bits to a HBITMAP? Pin
ceejeeb27-Jan-07 1:24
ceejeeb27-Jan-07 1:24 
AnswerRe: How to convert a array of bitmap bits to a HBITMAP? Pin
Mark Salsbery27-Jan-07 7:40
Mark Salsbery27-Jan-07 7:40 
AnswerRe: How to convert a array of bitmap bits to a HBITMAP? Pin
Hamid_RT27-Jan-07 19:14
Hamid_RT27-Jan-07 19:14 
Questionhow to know what is the class name of the main frame window? Pin
bengz27-Jan-07 0:36
bengz27-Jan-07 0:36 
AnswerRe: how to know what is the class name of the main frame window? Pin
Joan M27-Jan-07 1:35
professionalJoan M27-Jan-07 1:35 
AnswerRe: how to know what is the class name of the main frame window? Pin
Mark Salsbery27-Jan-07 7:43
Mark Salsbery27-Jan-07 7:43 
GeneralRe: how to know what is the class name of the main frame window? Pin
prasad_som27-Jan-07 17:49
prasad_som27-Jan-07 17:49 
GeneralRe: how to know what is the class name of the main frame window? Pin
Mark Salsbery28-Jan-07 6:26
Mark Salsbery28-Jan-07 6:26 
Question(previous post-displaying RGB video) back with a bit of groundwork in DirectX Pin
jossion27-Jan-07 0:04
jossion27-Jan-07 0:04 
QuestionGo to end? Pin
Larsson26-Jan-07 23:19
Larsson26-Jan-07 23:19 
AnswerRe: Go to end? Pin
Joan M27-Jan-07 1:29
professionalJoan M27-Jan-07 1:29 
GeneralRe: Go to end? Pin
Larsson28-Jan-07 7:53
Larsson28-Jan-07 7:53 

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.