Click here to Skip to main content
15,906,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to mimic the Windows XP Welcome Screen in MFC ? Pin
Waldermort11-Feb-07 21:17
Waldermort11-Feb-07 21:17 
QuestionStatus Pane Pin
T.RATHA KRISHNAN11-Feb-07 17:50
T.RATHA KRISHNAN11-Feb-07 17:50 
QuestionRe: Status Pane Pin
prasad_som11-Feb-07 17:54
prasad_som11-Feb-07 17:54 
AnswerRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 18:12
T.RATHA KRISHNAN11-Feb-07 18:12 
QuestionRe: Status Pane Pin
prasad_som11-Feb-07 18:16
prasad_som11-Feb-07 18:16 
AnswerRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 18:23
T.RATHA KRISHNAN11-Feb-07 18:23 
AnswerRe: Status Pane Pin
prasad_som11-Feb-07 18:28
prasad_som11-Feb-07 18:28 
QuestionRe: Status Pane [modified] Pin
T.RATHA KRISHNAN11-Feb-07 19:10
T.RATHA KRISHNAN11-Feb-07 19:10 
If I remove the comments from this line,
//m_wndStatusBar.SetPaneInfo(1,IDS_MESSAGE,SBPS_NORMAL,100); an exception occurs. If I break that exception, it goes to a file called barstat.cpp



void CStatusBar::SetPaneInfo(int nIndex, UINT nID, UINT nStyle, int cxWidth)
{
ASSERT_VALID(this);

BOOL bChanged = FALSE;
AFX_STATUSPANE* pSBP = _GetPanePtr(nIndex);
pSBP->nID = nID;
if (pSBP->nStyle != nStyle)
********{
if ((pSBP->nStyle ^ nStyle) & SBPS_STRETCH)
bChanged = TRUE;
else
{
pSBP->nStyle = nStyle;
pSBP->nFlags |= SBPF_UPDATE;
SetPaneText(nIndex, pSBP->strText);
}
pSBP->nStyle = nStyle;
}
if (cxWidth != pSBP->cxText)
{
// change width of one pane -> invalidate the entire status bar
pSBP->cxText = cxWidth;
bChanged = TRUE;
}
if (bChanged)
UpdateAllPanes(TRUE, FALSE);
}

The yellow pointer appears in the line where ******** is shown. What may be the problem?


-- modified at 1:27 Monday 12th February, 2007
QuestionRe: Status Pane Pin
prasad_som11-Feb-07 19:30
prasad_som11-Feb-07 19:30 
AnswerRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 20:23
T.RATHA KRISHNAN11-Feb-07 20:23 
QuestionRe: Status Pane Pin
prasad_som11-Feb-07 21:22
prasad_som11-Feb-07 21:22 
AnswerRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 21:45
T.RATHA KRISHNAN11-Feb-07 21:45 
GeneralRe: Status Pane Pin
prasad_som11-Feb-07 21:57
prasad_som11-Feb-07 21:57 
GeneralRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 23:08
T.RATHA KRISHNAN11-Feb-07 23:08 
GeneralRe: Status Pane Pin
David Crow12-Feb-07 2:48
David Crow12-Feb-07 2:48 
GeneralRe: Status Pane Pin
kasturi_haribabu11-Feb-07 22:02
kasturi_haribabu11-Feb-07 22:02 
QuestionRe: Status Pane Pin
David Crow12-Feb-07 2:47
David Crow12-Feb-07 2:47 
GeneralRe: Status Pane Pin
kasturi_haribabu11-Feb-07 21:57
kasturi_haribabu11-Feb-07 21:57 
GeneralRe: Status Pane Pin
T.RATHA KRISHNAN11-Feb-07 22:37
T.RATHA KRISHNAN11-Feb-07 22:37 
AnswerRe: Status Pane Pin
Hamid_RT11-Feb-07 19:42
Hamid_RT11-Feb-07 19:42 
QuestionRe: Status Pane Pin
David Crow12-Feb-07 2:45
David Crow12-Feb-07 2:45 
Questionconsole application TCP client in C++ [modified] Pin
wizard 20211-Feb-07 16:48
wizard 20211-Feb-07 16:48 
Questionopengl and color filter Pin
zqueezy11-Feb-07 11:45
zqueezy11-Feb-07 11:45 
AnswerRe: opengl and color filter Pin
cmk11-Feb-07 12:20
cmk11-Feb-07 12:20 
QuestionCListCtrl Selection problem Pin
Zombie_Inc11-Feb-07 9:44
Zombie_Inc11-Feb-07 9:44 

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.