Getting TAB to work with CreateWindowEx and some buttons
Hey there, i want to be able to TAB through my controls i create. This is how i make my window:
hWndOptions = CreateWindow("itxOptions", "itxOptions", WS_CLIPCHILDREN|WS_POPUP|WS_BORDER, xPos, yPos, 350, 264, NULL, NULL, hInstance, NULL);
And this is how i create my buttons:
bntContinue = CreateWindowEx(0,"BUTTON", "Continue", WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_PUSHBUTTON, 4, 235, 80, 24, hWnd, (HMENU)(int)ID_itxContinue, NULL, NULL);
SendMessage(bntContinue, WM_SETFONT, (WPARAM)itxOptionsFont, 0);
I am sure i am forgetting something, because when i do this:
SetFocus(bntContinue);
It does NOT show a focus rect. Anybody?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement