Again problem =(
After i get hotkey, i write it to file.
Next time, when my application sarts, i read data from file, and then transform it back to WORD(to int), and try to put into HotKey control:
w = SendDlgItemMessage(hDlg, id, HKM_GETHOTKEY, 0, 0);
ltoa(w, c2, 10);
WriteFile(hFile, c2, strlen(c2), &dw, NULL);
After this operations my HotKey control became empty. Where is the problem?
ReadFile(hFile, cCont, GetFileSize(hFile, 0), &dw, NULL);
w = atoi(cCont);
SendDlgItemMessage(hDlg, EB_OPEN, HKM_SETHOTKEY, HIWORD(w), LOWORD(w));