Bonjour,
J'ai rajout� un indicateur de graphe ID_INDICATOR_GRA dans MainFrm.cpp
et j'ai rajout� le code suivant dans ma fonction OnDraw de ma View
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9 static UINT indicators[] = { ID_SEPARATOR, // status line indicator ID_INDICATOR_GRA, ID_INDICATOR_CAPS, ID_INDICATOR_NUM, ID_INDICATOR_SCRL, };
Le paneau de largeur 150 s'affiche bien, mais par contre, le nom du graphe s'affiche pendant une seconde puis dispara�t. Pourquoi ?
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9 CString graphe; ... CMainFrame* pFrame = (CMainFrame*) AfxGetApp()->m_pMainWnd; CStatusBar* pStatus = &pFrame->m_wndStatusBar; pStatus->SetPaneInfo(1,ID_INDICATOR_GRA,SBPS_NORMAL,150); pStatus->SetPaneText(1, graphe);
Partager