OVH Cloud OVH Cloud

comment creer une bar de progression

1 réponse
Avatar
sebosac
Salut,


je cherche comment creer une bar de progression dans ma fenetre, mais san=
s=20
succes, ma fenetre reste vide. voici un extrait de mon code :


ControlRef control,tempControl;

Rect bounds ;
Rect contentBounds;


SetRect(&contentBounds, 10, 50, 400, 400);// carr=E9 400 ; x,y 1=
0,50

CreateNewWindow (
kDocumentWindowClass, kWindowStandardHandlerAttribute,
&contentBounds,
&theWindow
);

SetRect(&bounds, 50,50,20,200);// x,y 50,50 ; longeur 200

ShowWindow(theWindow);

cout << CreateProgressBarControl( theWindow, &bounds, 50, 0, 100, =
true,=20
&control );

Draw1Control(control);






qu'es ce qui ne va pas la dedans pour que je n'est rien =E0 l'ecran.( cel=
a fait 2=20
jour que je cherche en vain)

toutes aides serait remercier.

sebastien

1 réponse

Avatar
Tactigo
Le 9/12/04 22:00, dans 41b8bd0b$0$8119$, « sebosac »
a écrit :

Salut,


je cherche comment creer une bar de progression dans ma fenetre, mais sans
succes, ma fenetre reste vide. voici un extrait de mon code :


ControlRef control,tempControl;

Rect bounds ;
Rect contentBounds;


SetRect(&contentBounds, 10, 50, 400, 400);// carré 400 ; x,y 10,50

CreateNewWindow (
kDocumentWindowClass, kWindowStandardHandlerAttribute,
&contentBounds,
&theWindow
);

SetRect(&bounds, 50,50,20,200);// x,y 50,50 ; longeur 200

ShowWindow(theWindow);

cout << CreateProgressBarControl( theWindow, &bounds, 50, 0, 100, true,
&control );

Draw1Control(control);

qu'es ce qui ne va pas la dedans pour que je n'est rien à l'ecran.( cela fait
2
jour que je cherche en vain)

toutes aides serait remercier.

sebastien



Et en mettant ShowWindow(theWindow); à la fin ?