Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionON Network module Pin
Member 35534025-Feb-07 0:17
Member 35534025-Feb-07 0:17 
AnswerRe: ON Network module Pin
Waldermort5-Feb-07 2:06
Waldermort5-Feb-07 2:06 
AnswerRe: ON Network module Pin
David Crow5-Feb-07 3:03
David Crow5-Feb-07 3:03 
AnswerRe: ON Network module Pin
Eytukan5-Feb-07 3:15
Eytukan5-Feb-07 3:15 
AnswerRe: ON Network module Pin
Hamid_RT5-Feb-07 7:42
Hamid_RT5-Feb-07 7:42 
QuestionMFC STATUS BAR PROBLEM Pin
T.RATHA KRISHNAN4-Feb-07 23:44
T.RATHA KRISHNAN4-Feb-07 23:44 
AnswerRe: MFC STATUS BAR PROBLEM Pin
kasturi_haribabu5-Feb-07 0:04
kasturi_haribabu5-Feb-07 0:04 
GeneralRe: MFC STATUS BAR PROBLEM Pin
T.RATHA KRISHNAN5-Feb-07 0:20
T.RATHA KRISHNAN5-Feb-07 0:20 
The method that displays message is:

The function that displays the message is:

void CPerspectiveDoc::OnShowMsg(CCmdUI* pCmdUI)
{
char str1[150];
//int len = message.GetLength();
sprintf(str1, "%s",message.GetString());
pCmdUI->Enable(TRUE);
pCmdUI->SetText((const char *)str1);
//m_wndStatusBar.SetPaneInfo(1, IDS_MESSAGE, SBPS_STRETCH, len);
}

I can't use SetPaneText and SetPaneInfo with this CCmdUI* (pCmdUI) object pointer. If I comment out this: //m_wndStatusBar.SetPaneInfo(1, IDS_MESSAGE, SBPS_STRETCH, len);I got an exeption.

More over we should not initialize the string "message" in the code. We should get it through GetString method for edit box. The status bar pane should grow according to the length of the string.

static UINT indicators[] =
{
0,// ID_SEPARATOR
IDS_MESSAGE,
ID_SHOWFPS,
};

This method is in some other source file. Is this a reason for this error?
AnswerRe: MFC STATUS BAR PROBLEM Pin
#realJSOP5-Feb-07 0:07
mve#realJSOP5-Feb-07 0:07 
AnswerRe: MFC STATUS BAR PROBLEM Pin
#realJSOP5-Feb-07 0:29
mve#realJSOP5-Feb-07 0:29 
GeneralMFC STATUS BAR PROBLEM ADDITIONAL Pin
T.RATHA KRISHNAN5-Feb-07 1:10
T.RATHA KRISHNAN5-Feb-07 1:10 
GeneralRe: MFC STATUS BAR PROBLEM ADDITIONAL Pin
#realJSOP5-Feb-07 1:40
mve#realJSOP5-Feb-07 1:40 
QuestionRe: MFC STATUS BAR PROBLEM ADDITIONAL [modified] Pin
T.RATHA KRISHNAN5-Feb-07 17:40
T.RATHA KRISHNAN5-Feb-07 17:40 
AnswerRe: MFC STATUS BAR PROBLEM ADDITIONAL Pin
#realJSOP5-Feb-07 23:13
mve#realJSOP5-Feb-07 23:13 
QuestionRe: MFC STATUS BAR PROBLEM ADDITIONAL [modified] Pin
T.RATHA KRISHNAN6-Feb-07 1:42
T.RATHA KRISHNAN6-Feb-07 1:42 
QuestionPlease help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy4-Feb-07 23:17
XTr1NiTy4-Feb-07 23:17 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
kasturi_haribabu4-Feb-07 23:44
kasturi_haribabu4-Feb-07 23:44 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP4-Feb-07 23:47
mve#realJSOP4-Feb-07 23:47 
GeneralRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 0:16
XTr1NiTy5-Feb-07 0:16 
QuestionRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) [modified] Pin
XTr1NiTy5-Feb-07 0:02
XTr1NiTy5-Feb-07 0:02 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 0:24
mve#realJSOP5-Feb-07 0:24 
QuestionRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 0:43
XTr1NiTy5-Feb-07 0:43 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 1:47
mve#realJSOP5-Feb-07 1:47 
QuestionRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
XTr1NiTy5-Feb-07 1:19
XTr1NiTy5-Feb-07 1:19 
AnswerRe: Please help, SendMesssage not working in MFC Dialog Application, (with wizard) Pin
#realJSOP5-Feb-07 1:50
mve#realJSOP5-Feb-07 1:50 

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.