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