Again problem =(
After i get hotkey, i write it to file.
Code:
w = SendDlgItemMessage(hDlg, id, HKM_GETHOTKEY, 0, 0);
ltoa(w, c2, 10);
WriteFile(hFile, c2, strlen(c2), &dw, NULL);
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:
Code:
WORD w;
...
ReadFile(hFile, cCont, GetFileSize(hFile, 0), &dw, NULL);
w = atoi(cCont);
SendDlgItemMessage(hDlg, EB_OPEN, HKM_SETHOTKEY, HIWORD(w), LOWORD(w));
After this operations my HotKey control became empty. Where is the problem?