在CRichEditCtrl里面輸入字符的時候,按下鍵盤的Insert鍵,可以切換輸入的狀態.
一種是覆寫,一種是取代.
程式里怎么判斷當前處于那種狀態??
uj5u.com熱心網友回復:
HOOK按建,也就是判斷insert鍵是否有被按下過,然后自己去記錄這個狀態uj5u.com熱心網友回復:
#define VK_INSERT 0x2Dif(pMsg->wParam == VK_INSERT)
{
....
}
uj5u.com熱心網友回復:
bIsInsert = (GetKeyState(VK_INSERT) & 0x0001) ? TRUE:FALSE;
uj5u.com熱心網友回復:
If the low-order bit is 1, the key is toggled. A key, such as the caps lock key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/109595.html
標籤:基礎類
下一篇:WIN32和MFC各自優點
