Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The problem lays in the line <code>GetMessage( &amp;message, window, 0, 0 )</code>. You are receiving messages only for the <code>window</code>, not <code>testEditBox</code>, so some messages aren't dispatched. The line should be like <code>GetMessage(&amp;message, NULL, 0, 0)</code>.</p> <p>These are the messages received by <code>testEditBox</code> in your application when I press and release <kbd>Ctrl</kbd> + <kbd>Shift</kbd>:</p> <pre><code>WM_KEYDOWN nVirtKey:VK_CONTROL cRepeat:1 ScanCode:1D fExtended:0 fAltDown:0 fRepeat:0 fUp:0 WM_KEYDOWN nVirtKey:VK_SHIFT cRepeat:1 ScanCode:2A fExtended:0 fAltDown:0 fRepeat:0 fUp:0 WM_KEYUP nVirtKey:VK_SHIFT cRepeat:1 ScanCode:2A fExtended:0 fAltDown:0 fRepeat:1 fUp:1 WM_KEYUP nVirtKey:VK_CONTROL cRepeat:1 ScanCode:1D fExtended:0 fAltDown:0 fRepeat:1 fUp:1 </code></pre> <p>Compare them to the messages after the fix:</p> <pre><code>WM_KEYDOWN nVirtKey:VK_CONTROL cRepeat:1 ScanCode:1D fExtended:0 fAltDown:0 fRepeat:0 fUp:0 WM_KEYDOWN nVirtKey:VK_SHIFT cRepeat:1 ScanCode:2A fExtended:0 fAltDown:0 fRepeat:0 fUp:0 WM_KEYUP nVirtKey:VK_SHIFT cRepeat:1 ScanCode:2A fExtended:0 fAltDown:0 fRepeat:1 fUp:1 WM_IME_NOTIFY dwCommand:IMN_CLOSESTATUSWINDOW dwData:00000000 WM_IME_NOTIFY dwCommand:IMN_OPENSTATUSWINDOW dwData:00000000 WM_INPUTLANGCHANGE charset:0 hkl:04090409 //this WM_IME_NOTIFY dwCommand:IMN_SETCOMPOSITIONFONT dwData:00000000 WM_KEYUP nVirtKey:VK_CONTROL cRepeat:1 ScanCode:1D fExtended:0 fAltDown:0 fRepeat:1 fUp:1 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload