I have some code below to try and extract a virtual key-code from a Edit control... It's not working out at all...
I need to save it to the Registry, and then load it back in =(
For instance, if I put 'Q' in the textbox, I get 337 as the number (WRONG WRONG WRONG =()
GetWindowText(GetDlgItem(hwnd, IDC_HOTKEY), sHotKey, 2);
RegWrite(regkey, "Hotkey", iHotKey);
//Nothing so far, as I can't even extract it properly, but I would need to SetWindowText...