65.9K
CodeProject is changing. Read more.
Home

CTRL+ I is received as TAB in the OnChar event of a window

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Sep 13, 2011

CPOL
viewsIcon

12444

This is not so much of a trick, just a little tip about how CTRL+I is interpretated in a window

Override OnChar event of a CWnd derived class and check that pressing TAB key and pressing CTRL+I is intrepretated as the same value VK_TAB. Some user of your application might be annoyed by this behaviour, so better be careful in handling the TAB key press in OnChar.