CEDIT控件只允許輸入中文、字母、數字

1.鼠標右鍵項目 2. 添加類,類名爲InPutEdit,繼承CEdit   3.重寫onChar方法   主要代碼: BOOL IsChineseCharANSI(BYTE inputChar) { BOOL bResult = FALSE; // 依據爲國標GB2312-1980的漢字編碼方式,常用字編碼 if (inputChar >= 0xB0 && inputChar <= 0xF
相關文章
相關標籤/搜索