|
发表于 2020-11-28 07:00:01
|
显示全部楼层
you should subclass your edit control and ...
case WM_CHAR:
if(wParam>='0'&&wParam<='9'||wParam>='a'&&wParam<='f')
{
sprintf(buff,"%c",wParam);
strcat(TempBuff,buff);
SetWindowText(hwnd,TempBuff);
SendMessage(hwnd, EM_SETSEL,strlen(TempBuff),-1);
} |
|