Click here to Skip to main content
16,006,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The file I need is open outside the OutLook Express! Pin
Ravi Bhavnani16-Aug-02 6:23
professionalRavi Bhavnani16-Aug-02 6:23 
QuestionB&W bitmap ??? Pin
CaesarCZ13-Aug-02 18:01
CaesarCZ13-Aug-02 18:01 
AnswerRe: B&W bitmap ??? Pin
Todd Smith13-Aug-02 18:34
Todd Smith13-Aug-02 18:34 
GeneralRe: B&W bitmap ??? Pin
CaesarCZ14-Aug-02 1:47
CaesarCZ14-Aug-02 1:47 
GeneralRe: B&W bitmap ??? Pin
Todd Smith14-Aug-02 7:50
Todd Smith14-Aug-02 7:50 
GeneralCStatusBar woes Pin
William Payne13-Aug-02 16:56
William Payne13-Aug-02 16:56 
GeneralRe: CStatusBar woes Pin
Roman Fadeyev13-Aug-02 20:04
Roman Fadeyev13-Aug-02 20:04 
GeneralRe: CStatusBar woes Pin
William Payne13-Aug-02 20:44
William Payne13-Aug-02 20:44 
Tried your suggestions (except for the command handlers), still no text in the message pane. And I don't think the lack of panes was the problem, since text appears if I call SetMessageText() in OnPaint() of the parent window (the frame window). I've made a small test program: which is as follows:

///// APPLICATION.H /////
#ifndef APPLICATION_H
#define APPLICATION_H

#include <afxwin.h>
#include "FrameWindow.h"

class StatusBarApplication : public CWinApp
{
public:

BOOL InitInstance();

};

extern StatusBarApplication g_applicationInstance;

#endif
//// END OF APPLICATION.H ////

//// APPLICATION.CPP ////
#include "Application.h"

StatusBarApplication g_applicationInstance;

BOOL StatusBarApplication::InitInstance()
{
m_pMainWnd = new FrameWindow();

m_pMainWnd->ShowWindow( m_nCmdShow );

m_pMainWnd->UpdateWindow();

return TRUE;
}
//// END OF APPLICATION.CPP /////

//// FRAMEWINDOW.H /////
#ifndef FRAMEWINDOW_H
#define FRAMEWINDOW_H

#include <afxext.h>
#include <afxwin.h>

class FrameWindow : public CFrameWnd
{
public:
FrameWindow();

DECLARE_MESSAGE_MAP()

private:
CStatusBar m_statusBar;
};

#endif
//// END OF FRAMEWINDOW.H ////

//// FRAMEWINDOW.CPP ////
#include "FrameWindow.h"

BEGIN_MESSAGE_MAP( FrameWindow, CFrameWnd )
END_MESSAGE_MAP()

static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
//ID_INDICATOR_POS,
ID_INDICATOR_CAPS,
ID_INDICATOR_OVR,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL
};


FrameWindow::FrameWindow()
{
Create( NULL, "Status Bar Test" );

m_statusBar.Create( this );
m_statusBar.SetIndicators( indicators,
sizeof( indicators ) / sizeof( UINT) );

SetMessageText( "test" ); // No text appears in the message pane
// despite this call.
}
//// END OF FRAMEWINDOW.CPP ////
GeneralRe: CStatusBar woes Pin
Roman Fadeyev14-Aug-02 18:54
Roman Fadeyev14-Aug-02 18:54 
Generalgetting garbage out ....help! Pin
ns13-Aug-02 16:27
ns13-Aug-02 16:27 
GeneralRe: getting garbage out ....help! Pin
Jon Hulatt14-Aug-02 0:09
Jon Hulatt14-Aug-02 0:09 
Questionshortsighted design - so can I do this now? Pin
ns13-Aug-02 15:38
ns13-Aug-02 15:38 
AnswerRe: shortsighted design - so can I do this now? Pin
Jason Henderson13-Aug-02 16:05
Jason Henderson13-Aug-02 16:05 
GeneralRe: shortsighted design - so can I do this now? Pin
AlinRO15-Aug-02 0:45
AlinRO15-Aug-02 0:45 
GeneralRe: shortsighted design - so can I do this now? Pin
Jason Henderson15-Aug-02 2:55
Jason Henderson15-Aug-02 2:55 
AnswerRe: shortsighted design - so can I do this now? Pin
Todd Smith13-Aug-02 18:37
Todd Smith13-Aug-02 18:37 
GeneralRe: shortsighted design - so can I do this now? Pin
ns14-Aug-02 3:00
ns14-Aug-02 3:00 
GeneralDefault debugger Pin
Jon Sagara13-Aug-02 15:13
Jon Sagara13-Aug-02 15:13 
GeneralRe: Default debugger Pin
Jason Henderson13-Aug-02 16:07
Jason Henderson13-Aug-02 16:07 
General2 simple problem, guys, gotta help me! Pin
BlackSmith13-Aug-02 14:18
BlackSmith13-Aug-02 14:18 
GeneralRe: 2 simple problem, guys, gotta help me! Pin
Ravi Bhavnani13-Aug-02 14:36
professionalRavi Bhavnani13-Aug-02 14:36 
GeneralRe: 2 simple problem, guys, gotta help me! Pin
Roman Fadeyev13-Aug-02 20:14
Roman Fadeyev13-Aug-02 20:14 
Generalmerging STL sets Pin
moredip13-Aug-02 13:32
moredip13-Aug-02 13:32 
GeneralRe: merging STL sets Pin
Christian Graus13-Aug-02 14:42
protectorChristian Graus13-Aug-02 14:42 
GeneralRe: merging STL sets Pin
moredip14-Aug-02 9:18
moredip14-Aug-02 9:18 

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.