I created several controls in my window in the WM_CREATE message handler, and I want to enable the use of the tab key to move focus through the set of controls from one to the next.
Creating a control is as follows:
case WM_CREATE:
{
CreateWindowA("button", "Refresh Listview",
BS_MULTILINE | WS_CHILD | WS_VISIBLE, 10, 10, 70, 50,
hwnd, (HMENU)IDC_REFRESHLW, g_hInst, NULL);
break;
}
When I press the tab key to change focus to another control in the window, it does nothing. Should I somehow initialize this?
I noticed that if I use the dialog, it already automatically allows you to use the tab key, and the tab order is the order in which you create the controls in the .rc file.
But I do not want a dialogue!
Kaije