Child window and tab stop
-
Hi I am trying to create a MFC control made out of two edits and a pseudo-tab control... they are all children controls of a CWnd. I want to make sure that when the controls gets the focus through a tab, one of the 2 edit controls gets the focus and if another tab is pressed, that the focus goes to the next control in the parent dialog. I am aware of WS_TABSTOP ( I use it to create the CWnd) but that des not seem to do the trick... any tips? Thanks in advance
-
Hi I am trying to create a MFC control made out of two edits and a pseudo-tab control... they are all children controls of a CWnd. I want to make sure that when the controls gets the focus through a tab, one of the 2 edit controls gets the focus and if another tab is pressed, that the focus goes to the next control in the parent dialog. I am aware of WS_TABSTOP ( I use it to create the CWnd) but that des not seem to do the trick... any tips? Thanks in advance
Do you mean that your control is a CWnd which hosts 2 edits and that tab and is a child window of another window? If so, make your "host" CWnd WS_CONTROLPARENT and also make it WS_TABSTOP. Hope that helps, good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <