1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| switch(iId)
{
case ID_PUSHBUTTON_1:
{
bitrate=GetDlgItemInt(fenetrePrincipale, (HMENU)ID_EDITBOX_1, NULL, FALSE);
if (bitrate==' ')
bitrate=0;
}
break;
case ID_PUSHBUTTON_2:
if (mon_booleen == 1)
{
freefps=GetDlgItemText(fenetrePrincipale, (HMENU)ID_EDITBOX_2, NULL, 6);
fps=strtod(freefps, NULL);
}
break;
case ID_PUSHBUTTON_3:
DestroyWindow(fenetrePrincipale);
break;
case ID_RADIOBUTTON_11:
mon_booleen=0;
fps=25;
break;
case ID_RADIOBUTTON_12:
mon_booleen=0;
fps=23.976;
break;
case ID_RADIOBUTTON_13:
mon_booleen=1;
break;
case ID_CHECKBOX_1:
AfficheActionCheckBox(iId-ID_CHECKBOX_1,hCtl,fenetrePrincipale);
break;
case ID_UPDOWN:
{
SendMessage(ID_UPDOWN, UDM_SETBUDDY, (WPARAM)ID_EDITBOX_3, 0);
weight = 719;
_stprintf(bufw, TEXT("%d"), weight);
hEdit=CreateWindow( "EDIT",
bufw,
WS_VISIBLE|WS_CHILD|WS_BORDER|ES_CENTER|ES_READONLY ,
10+248,10+172,40,20,fenetrePrincipale,(HMENU)ID_EDITBOX_3,instance,NULL);
}
} |