Click here to Skip to main content
16,016,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalexcel automation!! Pin
pnpfriend3-Sep-04 5:56
pnpfriend3-Sep-04 5:56 
GeneralRe: excel automation!! Pin
David Crow3-Sep-04 6:11
David Crow3-Sep-04 6:11 
GeneralRe: excel automation!! Pin
pnpfriend3-Sep-04 6:56
pnpfriend3-Sep-04 6:56 
GeneralRe: excel automation!! Pin
David Crow3-Sep-04 7:02
David Crow3-Sep-04 7:02 
GeneralRe: excel automation!! Pin
pnpfriend3-Sep-04 9:02
pnpfriend3-Sep-04 9:02 
GeneralRe: excel automation!! Pin
David Crow3-Sep-04 9:42
David Crow3-Sep-04 9:42 
GeneralRe: excel automation!! Pin
pnpfriend7-Sep-04 7:33
pnpfriend7-Sep-04 7:33 
GeneralActivate a specific View in an MDI MFC Doc/View App Pin
Paul Steane3-Sep-04 5:28
Paul Steane3-Sep-04 5:28 
I have a VC++ 6 MDI application using the conventional MFC Doc/View architecture. At any given time there can be several different views of several different document types open.

I want to be able to programmatically "activate" one of these Views, i.e. if it is hidden by other Views then I want it to become visible, just as if the User clicked on the relevent numbered item in the Windows menu (NB this does work correctly). The specific View that is to be activated does not directly depend on User input, e.g. it could be as a result of a message from another thread.

This seems to be an obvious thing to be able to do yet I cannot make it work. I am inside a message handler within my CMainFrame class; I have a CMyView* to the View I want to activate. MDIActivate(pMyView) seems to do nothing; I can't get CMDIChildWnd::MDIActivate() to work for me.

Perhaps it is something to do with me using the above functions with a CView* not a CWnd*. Can I deduce the latter from the former in a way that will make this work? What else may be wrong?

All assistance appreciated.
GeneralRunning an .exe programmatically Pin
anderslundsgard3-Sep-04 5:13
anderslundsgard3-Sep-04 5:13 
GeneralRe: Running an .exe programmatically Pin
David Crow3-Sep-04 6:12
David Crow3-Sep-04 6:12 
GeneralRe: Running an .exe programmatically Pin
Michael Dunn3-Sep-04 7:20
sitebuilderMichael Dunn3-Sep-04 7:20 
GeneralReplace Minimize Button Pin
Caligulo3-Sep-04 4:34
Caligulo3-Sep-04 4:34 
GeneralRe: Replace Minimize Button Pin
Maximilien3-Sep-04 5:10
Maximilien3-Sep-04 5:10 
GeneralSending characters to other windows Pin
tab13-Sep-04 4:28
tab13-Sep-04 4:28 
GeneralRe: Sending characters to other windows Pin
David Crow3-Sep-04 4:39
David Crow3-Sep-04 4:39 
GeneralRe: Sending characters to other windows Pin
tab13-Sep-04 4:42
tab13-Sep-04 4:42 
GeneralRe: Sending characters to other windows Pin
David Crow3-Sep-04 4:51
David Crow3-Sep-04 4:51 
GeneralRe: Sending characters to other windows Pin
tab13-Sep-04 4:58
tab13-Sep-04 4:58 
GeneralRe: Sending characters to other windows Pin
David Crow3-Sep-04 5:10
David Crow3-Sep-04 5:10 
GeneralRe: Sending characters to other windows Pin
tab15-Sep-04 23:26
tab15-Sep-04 23:26 
GeneralRe: Sending characters to other windows Pin
BlackDice3-Sep-04 7:09
BlackDice3-Sep-04 7:09 
GeneralCreating directory.. Pin
Sudhakar Pasupunuri3-Sep-04 3:56
Sudhakar Pasupunuri3-Sep-04 3:56 
GeneralRe: Creating directory.. Pin
David Crow3-Sep-04 4:40
David Crow3-Sep-04 4:40 
GeneralRe: Creating directory.. Pin
Michael Dunn3-Sep-04 7:21
sitebuilderMichael Dunn3-Sep-04 7:21 
QuestionRight click? Pin
Larsson3-Sep-04 2:59
Larsson3-Sep-04 2:59 

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.