Click here to Skip to main content
15,907,000 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A program running Pin
Hamid_RT29-Jan-07 18:07
Hamid_RT29-Jan-07 18:07 
AnswerRe: A program running Pin
Mark Salsbery27-Jan-07 11:22
Mark Salsbery27-Jan-07 11:22 
GeneralRe: A program running Pin
Eytukan27-Jan-07 20:16
Eytukan27-Jan-07 20:16 
GeneralRe: A program running Pin
RomTibi27-Jan-07 20:28
RomTibi27-Jan-07 20:28 
GeneralRe: A program running Pin
#realJSOP28-Jan-07 0:44
professional#realJSOP28-Jan-07 0:44 
GeneralRe: A program running Pin
Mark Salsbery28-Jan-07 6:43
Mark Salsbery28-Jan-07 6:43 
GeneralRe: A program running Pin
RomTibi29-Jan-07 2:23
RomTibi29-Jan-07 2:23 
GeneralRe: A program running Pin
Mark Salsbery29-Jan-07 6:31
Mark Salsbery29-Jan-07 6:31 
GeneralRe: A program running Pin
RomTibi29-Jan-07 9:35
RomTibi29-Jan-07 9:35 
GeneralRe: A program running Pin
Mark Salsbery29-Jan-07 11:02
Mark Salsbery29-Jan-07 11:02 
AnswerRe: A program running Pin
PJ Arends27-Jan-07 12:06
professionalPJ Arends27-Jan-07 12:06 
GeneralRe: A program running Pin
RomTibi27-Jan-07 20:29
RomTibi27-Jan-07 20:29 
AnswerRe: A program running Pin
Hamid_RT27-Jan-07 18:52
Hamid_RT27-Jan-07 18:52 
GeneralRe: A program running Pin
RomTibi27-Jan-07 20:29
RomTibi27-Jan-07 20:29 
AnswerRe: A program running Pin
Stephen Hewitt28-Jan-07 13:57
Stephen Hewitt28-Jan-07 13:57 
GeneralRe: A program running Pin
RomTibi29-Jan-07 2:15
RomTibi29-Jan-07 2:15 
QuestionTrying something new Pin
dellthinker27-Jan-07 7:37
dellthinker27-Jan-07 7:37 
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:


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.