Bonjour à tous,
J'essai d'afficher une barre de progression mais je n'y arrive pas....
En fait c'est juste la fonction Create de CDialog qui m'affiche un rapport d'erreur de Microsoft.......
Voici le code de la fonction :
C'est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 BOOL CProgressDlg::Create(CWnd *pParent) { // Get the true parent of the dialog m_pParentWnd = CWnd::GetSafeOwner(pParent); // m_bParentDisabled is used to re-enable the parent window // when the dialog is destroyed. So we don't want to set // it to TRUE unless the parent was already enabled. if((m_pParentWnd!=NULL) && m_pParentWnd->IsWindowEnabled()) { m_pParentWnd->EnableWindow(FALSE); m_bParentDisabled = TRUE; } if(!CDialog::Create(CProgressDlg::IDD,pParent)) { ReEnableParent(); return FALSE; } return TRUE; }
qui m'affiche le rapport, j'avoue que je suis coincé !CDialog::Create(CProgressDlg::IDD,pParent)
Merci d'avance à tous ceux qui se pencheront sur mon problème.
Bonne continuation......
Cheper
![]()
Partager