Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to know programmatically if network cable is connected or not? Pin
bob1697231-Jan-06 8:43
bob1697231-Jan-06 8:43 
GeneralRe: How to know programmatically if network cable is connected or not? Pin
Amarelia1-Feb-06 8:09
Amarelia1-Feb-06 8:09 
JokeRe: How to know programmatically if network cable is connected or not? Pin
Balon Fan22-Jun-08 1:43
Balon Fan22-Jun-08 1:43 
QuestionChanging Views in SplitterWindow-Panes Pin
hever31-Jan-06 2:04
hever31-Jan-06 2:04 
QuestionRe: Changing Views in SplitterWindow-Panes Pin
David Crow31-Jan-06 3:34
David Crow31-Jan-06 3:34 
GeneralRe: Changing Views in SplitterWindow-Panes Pin
hever31-Jan-06 7:52
hever31-Jan-06 7:52 
QuestionRe: Changing Views in SplitterWindow-Panes Pin
hever31-Jan-06 8:46
hever31-Jan-06 8:46 
AnswerRe: Changing Views in SplitterWindow-Panes Pin
hever31-Jan-06 10:44
hever31-Jan-06 10:44 
Ok I solved it Frown | :(

And as I said it was a simple one:

I accessed the MainForm with the following code:
reinterpret_cast<CMainFrame*>(GetDocument())->UpdateFunction;

But I have to use this one:
((CMainFrame*)theApp.GetMainWnd())->UpdateFunction;

I'm not a MFC expert and can not describe really what the problem was but when you try to change a view use the SwitchToView Function and acess the MainFrame like the second code post.

Perhaps it could help someone. Smile | :)
Questionset dialog to no max or no change of size Pin
waxie31-Jan-06 1:36
waxie31-Jan-06 1:36 
AnswerRe: set dialog to no max or no change of size Pin
Rage31-Jan-06 2:10
professionalRage31-Jan-06 2:10 
AnswerRe: set dialog to no max or no change of size Pin
toxcct31-Jan-06 2:20
toxcct31-Jan-06 2:20 
Questionrunning and terminating EXEs automatically Pin
Sasikumar.SR31-Jan-06 1:28
Sasikumar.SR31-Jan-06 1:28 
AnswerRe: running and terminating EXEs automatically Pin
Rage31-Jan-06 1:41
professionalRage31-Jan-06 1:41 
GeneralRe: running and terminating EXEs automatically Pin
David Crow31-Jan-06 3:36
David Crow31-Jan-06 3:36 
GeneralRe: running and terminating EXEs automatically Pin
Rage31-Jan-06 5:09
professionalRage31-Jan-06 5:09 
GeneralRe: running and terminating EXEs automatically Pin
Sasikumar.SR31-Jan-06 19:02
Sasikumar.SR31-Jan-06 19:02 
GeneralRe: running and terminating EXEs automatically Pin
Sasikumar.SR31-Jan-06 22:18
Sasikumar.SR31-Jan-06 22:18 
GeneralRe: running and terminating EXEs automatically Pin
David Crow1-Feb-06 2:20
David Crow1-Feb-06 2:20 
AnswerRe: running and terminating EXEs automatically Pin
Rage31-Jan-06 1:48
professionalRage31-Jan-06 1:48 
AnswerRe: running and terminating EXEs automatically Pin
#realJSOP31-Jan-06 2:58
mve#realJSOP31-Jan-06 2:58 
QuestionRe: running and terminating EXEs automatically Pin
David Crow31-Jan-06 3:40
David Crow31-Jan-06 3:40 
QuestionPrinter Spooler Pin
vikramlinux31-Jan-06 1:16
vikramlinux31-Jan-06 1:16 
QuestionRe: Printer Spooler Pin
David Crow31-Jan-06 3:43
David Crow31-Jan-06 3:43 
AnswerRe: Printer Spooler Pin
vikramlinux31-Jan-06 18:23
vikramlinux31-Jan-06 18:23 
QuestionRe: Printer Spooler Pin
David Crow1-Feb-06 2:19
David Crow1-Feb-06 2:19 

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.