Home > Software engineering >  Richedit control under win10 gains focus will feign death 10 seconds?
Richedit control under win10 gains focus will feign death 10 seconds?

Time:09-21

I wrote a richedit with MFC class, from CRichEditCtrl inheritance, the code is very simple, to generate DLL to exe calls,
Tests show:
1. In doing, win10 windows2012, windows2016, as long as the first time in the frame of richedit click the mouse, the whole window will feign death more than 10 seconds, no response, and then the normal,
2. Winxp Windows 7 win2003 win2008 under how to click on normal,
3. Write CTraceServiceControl class directly exe calls inside, all is well,
After monitoring richedit message, click, will receive MSIMEQueryPosition (line number 000236), to card here for a long time, then 000237, should be related to input method, could you tell me who can work it out? Thank you
Code to download: http://9ijj.com/test.zip
The results are as follows:
<000204 & gt; 00311312 S WM_SETCURSOR HWND: 00311312 nHittest: HTCLIENT wMouseMsg: WM_MOUSEMOVE
<000205 & gt; 00311312 R WM_SETCURSOR fHaltProcessing: True
<000206 & gt; 00311312 P WM_MOUSEMOVE fwKeys: MK_LBUTTON xPos: 142 yPos: 177
<000207 & gt; 00311312 P EM_SETPUNCTUATION fType: PC_DELIMITER punctTable: 00000010
<000208 & gt; 00311312 S EM_GETLINECOUNT
<000209 & gt; 00311312 R EM_GETLINECOUNT cLines: 1
<000210 & gt; 00311312 S EM_EXGETSEL LPCHR: 00 dab7d4
<000211 & gt; 00311312 R EM_EXGETSEL
<000212 & gt; 00311312 S EM_GETTEXTLENGTHEX pgtle: 00 dab7bc
<000213 & gt; 00311312 R EM_GETTEXTLENGTHEX nLength: 0
<000214 & gt; 00311312 S EM_EXSETSEL LPCHR: 00 dab7bc
<000215 & gt; 00311312 R EM_EXSETSEL
<000216 & gt; 00311312 S EM_SETCHARFORMAT uFlags: SCF_SELECTION lpFmt: 00 dab820
<000217 & gt; 00311312 R EM_SETCHARFORMAT fSucceeded: True
<000218 & gt; 00311312 S EM_REPLACESEL lpszReplace: 00 cae328 (" 20:28:11 [2016-12-16] ")
<000219 & gt; 00311312 R EM_REPLACESEL
<000220 & gt; 00311312 S EM_EXGETSEL LPCHR: 00 dab7d4
<000221 & gt; 00311312 R EM_EXGETSEL
<000222 & gt; 00311312 S EM_GETTEXTLENGTHEX pgtle: 00 dab7bc
<000223 & gt; 00311312 R EM_GETTEXTLENGTHEX nLength: 23
<000224 & gt; 00311312 S EM_EXSETSEL LPCHR: 00 dab7bc
<000225 & gt; 00311312 R EM_EXSETSEL
<000226 & gt; 00311312 S EM_SETCHARFORMAT uFlags: SCF_SELECTION lpFmt: 00 dab820
<000227 & gt; 00311312 R EM_SETCHARFORMAT fSucceeded: True
<000228 & gt; 00311312 S EM_REPLACESEL lpszReplace: 00 cae348 (" focus ")
<000229 & gt; 00311312 R EM_REPLACESEL
<000230 & gt; 00311312 P WM_VSCROLL nScrollCode: SB_BOTTOM hwndScrollBar: (null)
<000231 & gt; 00311312 P WM_VSCROLL nScrollCode: SB_BOTTOM hwndScrollBar: (null)
<000232 & gt; 00311312 P WM_PAINT HDC: 00000000
<000233 & gt; 00311312 S message: 0 xc055 [registered: "MSIMEQueryPosition"] wParam: 00000001 lParam: 00 daaee0
<000234 & gt; 00311312 R message: 0 xc055 [registered: "MSIMEQueryPosition"] lResult: 00000001
<000235 & gt; 00311312 S message: 0 xc055 [registered: "MSIMEQueryPosition"] wParam: 00000001 lParam: 00 daaedc
<000236 & gt; 00311312 R message: 0 xc055 [registered: "MSIMEQueryPosition"] lResult: 00000001
<000237 & gt; 00311312 S WM_IME_NOTIFY dwCommand: IMN_SETOPENSTATUS dwCommand: 00000008 dwData: 00000000
<000238 & gt; 00311312 R WM_IME_NOTIFY
<000239 & gt; 00311312 S WM_NCHITTEST xPos: 610 yPos: 474
<000240 & gt; 00311312 R WM_NCHITTEST nHittest: HTCLIENT
<000241 & gt; 00311312 S WM_NCHITTEST xPos: 610 yPos: 474
<000242 & gt; 00311312 R WM_NCHITTEST nHittest: HTCLIENT
<000243 & gt; 00311312 S WM_SETCURSOR HWND: 00311312 nHittest: HTCLIENT wMouseMsg: WM_LBUTTONUP
<000244 & gt; 00311312 R WM_SETCURSOR fHaltProcessing: True
<000245 & gt; 00311312 P WM_LBUTTONUP fwKeys: 0000 xPos: 142 yPos: 177
<000246 & gt; 00311312 S WM_GETDLGCODE
<000247 & gt; 00311312 R WM_GETDLGCODE fuDlgCode: DLGC_WANTARROWS | DLGC_WANTTAB | DLGC_WANTALLKEYS | DLGC_HASSETSEL | DLGC_WANTCHARS
<000248 & gt; 00311312 S WM_KILLFOCUS hwndGetFocus: (null)
<000249 & gt; 00311312 R WM_KILLFOCUS
<000250 & gt; 00311312 S WM_IME_SETCONTEXT fSet: 0 iShow: C000000F
<000251 & gt; 00311312 S WM_IME_NOTIFY dwCommand: IMN_CLOSESTATUSWINDOW dwCommand: 00000001 dwData: 00000000
<000252 & gt; 00311312 R WM_IME_NOTIFY
<000253 & gt; 00311312 R WM_IME_SETCONTEXT
<000254 & gt; 00311312 P EM_SETPUNCTUATION fType: PC_DELIMITER punctTable: 00000010
<000255 & gt; 00311312 S EM_GETLINECOUNT
<000256 & gt; 00311312 R EM_GETLINECOUNT cLines: 2
<000257 & gt; 00311312 S EM_EXGETSEL LPCHR: 00 dab7d4
<000258 & gt; 00311312 R EM_EXGETSEL
<000259 & gt; 00311312 S EM_GETTEXTLENGTHEX pgtle: 00 dab7bc
<000260 & gt; 28 00311312 R EM_GETTEXTLENGTHEX nLength:
<000261 & gt; 00311312 S EM_EXSETSEL LPCHR: 00 dab7bc
<000262 & gt; 00311312 R EM_EXSETSEL
<000263 & gt; 00311312 S EM_SETCHARFORMAT uFlags: SCF_SELECTION lpFmt: 00 dab820
<000264 & gt; 00311312 R EM_SETCHARFORMAT fSucceeded: True
<000265 & gt; 00311312 S EM_REPLACESEL lpszReplace: 00 cae328 (" 20:28:25 [2016-12-16] ")
<000266 & gt; 00311312 R EM_REPLACESEL
<000267 & gt; 00311312 S EM_EXGETSEL LPCHR: 00 dab7d4
<000268 & gt; 00311312 R EM_EXGETSEL
<000269 & gt; 00311312 S EM_GETTEXTLENGTHEX pgtle: 00 dab7bc
<000270 & gt; 00311312 R EM_GETTEXTLENGTHEX nLength: 51
<000271 & gt; 00311312 S EM_EXSETSEL LPCHR: 00 dab7bc
<000272 & gt; 00311312 R EM_EXSETSEL
<000273 & gt; nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related