Archived

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

Skibum

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

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:
			for(i=0;i<5;i++)
				handles[i] = CreateWindow("edit", NULL, WS_TABSTOP | WS_CHILD | WS_VISIBLE | WS_BORDER,
								15, 25*i, 50, 20, hWnd, NULL, hInst, NULL);
			break;
  
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