nuovo problema, sto cercando di fare uno stupidissimo conbtatore di click, ho creato un elemento static e sto cercando di gestire il messaggio in questo modo:
codice:
if(uMsg==WM_COMMAND) {
WORD wNotifica = HIWORD(wParam);
WORD wId = LOWORD(wParam);
if(wNotifica == STN_CLICKED && wId == 101) {
HWND hStat = (HWND)lParam;
char buff[1];
SendMessage(hStat, WM_GETTEXT, 1, (LPARAM)buff);
int cont = *buff;
cont++;
const int* cont1 = NULL;
cont1 = &cont;
SendMessage(hStat, WM_SETTEXT, 0, (LPARAM)cont1);
return TRUE;
}
ma non funziona, cosa sbaglio?