cosi?


Codice PHP:
BOOL CALLBACK unaDlgProc(HWND hwndDlgUINT uMsgWPARAM wParamLPARAM lParam

    if(
uMsg==WM_CLOSE
    { 
        
EndDialog(hwndDlg0);
        return 
TRUE
    } 
    else if(
uMsg==WM_COMMAND
    {
        
WORD wNotifica HIWORD(wParam);
        
WORD wId LOWORD(wParam); 
        if(
wNotifica == STN_CLICKED && wId == 101)
        { 
        
int buff[10]; 
        
int pTesto
        
pTesto 0;
        
SendMessage(hwndDlgWM_GETTEXT10buff[0]); 
        
int pTesto GetDlgItemInt(hwndDlg1010FALSE);
        if(
buff[0]>=0&&pTesto<100)
            {
                
pTesto++; 
        
int pTesto SetDlgItemInt(hwndDlg1010FALSE);
        
SendMessage(hwndDlgWM_SETTEXT0, (LPARAM)pTesto);
        }
        else if (
pTesto==100)
        {
            
pTesto=000;
            
int pTesto SetDlgItemInt(hwndDlg1010FALSE);
            
SendMessage(hwndDlgWM_SETTEXT0, (LPARAM)pTesto);
        }
        else if(
pTesto>100)
        {
        
EndDialog(hwndDlg0);
        }
        return 
TRUE;
        } 
    }
    return 
FALSE;