Solved

FormView and Statusbar

Posted on 1997-09-27
2
307 Views
Last Modified: 2013-11-19
I've created a SDI MFC app with a statusbar and the View using the FormView class.

What I want to know is what's the best way to change the status bar text from within the Document cpp file?

I can change it from withing mainfrm.cpp using SetPaneText but can't do it from the document cpp file.
0
Comment
Question by:gav061697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
winmeister earned 100 total points
ID: 1307047
Yes, you can.

CMainFrame* pFrame= (CMainFrame*)AfxGetApp()->m_pMainWnd;
CStatusBar* pStatus =  &(pFrame->m_wndStatusBar);

pStatus->SetPaneText(1,str);


0
 

Author Comment

by:gav061697
ID: 1307048
I take it I can use a similar technique to access other variables in mainfrm.cpp such as m_wndtoolbar etc?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
if loop in java 3 174
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 666
Fibonacci challenge 11 141
Notepad++ Question 11 28
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question