Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Tabbing through a window (non dialog window, no MFC, only C/C++)

This topic is 6107 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Using the default program for the "Hello World" program provided the MSVC compiler, made these adjustments:
// in WndProc: added these

static HWND handles[5];
int i;
// in the switch in WndProc:

		case WM_CREATE:
				handles[i] = CreateWindow("edit", NULL, WS_TABSTOP | WS_CHILD | WS_VISIBLE | WS_BORDER,
								15, 25*i, 50, 20, hWnd, NULL, hInst, NULL);
also removed the code for WM_PAINT since i won''t use it here Problem is when i put the cursor in one of the edit boxes, and press tab, the system just beeps at me...dosn''t go to the next control In the info for WS_TABSTOP it implies it''s only for dialog box navigation, if that''s the case, how do i get my cursor to tab to the next edit control like normal windows programs do? *wonders if he''s doing something stupid, as is many times the case for simple problems*

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!