Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
Nahida HK12-Jul-16 22:29
Nahida HK12-Jul-16 22:29 
AnswerRe: How to implement Tab order to the controls in a MFC Dialog box Pin
ATM@CodeProject29-Jan-09 19:01
ATM@CodeProject29-Jan-09 19:01 
AnswerRe: How to implement Tab order to the controls in a MFC Dialog box Pin
Nishad S29-Jan-09 19:05
Nishad S29-Jan-09 19:05 
QuestionRe: How to implement Tab order to the controls in a MFC Dialog box Pin
AJ8326-Apr-11 22:02
AJ8326-Apr-11 22:02 
AnswerRe: How to implement Tab order to the controls in a MFC Dialog box Pin
Nishad S26-Apr-11 22:24
Nishad S26-Apr-11 22:24 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
AJ8326-Apr-11 23:07
AJ8326-Apr-11 23:07 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
Nishad S26-Apr-11 23:24
Nishad S26-Apr-11 23:24 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
AJ8326-Apr-11 23:38
AJ8326-Apr-11 23:38 
This is my modified compilable code but tab order is not working as GRPBox -> Edit 1 -> Edit 2 -> Edit 3 -> OK -> CANCEL.

It is still working as GRPBox -> OK -> CANCEL.

#define ID_CURRENT_SN_EDIT  1003

m_gbGroupBox = (CStatic*)GetDlgItem(IDC_GROUPBOX);
m_gbGroupBox->ModifyStyleEx( 0, WS_EX_CONTROLPARENT);

m_btnOK      = (CButton*)GetDlgItem(IDC_OK);
m_btnCancel  = (CButton*)GetDlgItem(IDC_CANCEL);

int pointY = 0;
int i = 0;

for (int x = 0; x < m_vecpData->size(); x++, i++)
{
  pointY = 30 + (i * 35);
  m_ceEdit = new CEdit;
  m_ceEdit->Create(WS_VISIBLE| WS_BORDER |ES_READONLY, CRect(10, pointY, 130, pointY + 25), m_gbGroupBox, ID_CURRENT_SN_EDIT + i);
  m_ceEdit>SetWindowText(m_vecpData->at(x).c_str());
  int nCtlrID = ID_CURRENT_SN_EDIT + i;

  if (x > 0)
  {
    CEdit* pEdit = (CEdit*)GetDlgItem(nCtlrID - 1);
    m_ceEdit->SetWindowPos(pEdit, 10, pointY, 130, pointY + 25, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE );
  }
  m_ceEdit->ShowWindow(SW_SHOWNORMAL);
}


Any Help or Suggestion!! I do not know what to do now.
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
Nishad S26-Apr-11 23:46
Nishad S26-Apr-11 23:46 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
AJ8327-Apr-11 0:05
AJ8327-Apr-11 0:05 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
Nishad S27-Apr-11 0:18
Nishad S27-Apr-11 0:18 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
AJ8327-Apr-11 0:22
AJ8327-Apr-11 0:22 
GeneralRe: How to implement Tab order to the controls in a MFC Dialog box Pin
AJ8327-Apr-11 1:52
AJ8327-Apr-11 1:52 
Questionstr length Pin
VC++Maniac29-Jan-09 18:24
VC++Maniac29-Jan-09 18:24 
AnswerRe: str length Pin
Naveen29-Jan-09 18:44
Naveen29-Jan-09 18:44 
AnswerRe: str length Pin
_AnsHUMAN_ 29-Jan-09 18:46
_AnsHUMAN_ 29-Jan-09 18:46 
AnswerRe: str length Pin
kapardhi29-Jan-09 18:57
kapardhi29-Jan-09 18:57 
AnswerRe: str length Pin
Nishad S29-Jan-09 18:57
Nishad S29-Jan-09 18:57 
AnswerRe: str length Pin
VC++Maniac29-Jan-09 19:20
VC++Maniac29-Jan-09 19:20 
GeneralRe: str length Pin
Nishad S29-Jan-09 19:42
Nishad S29-Jan-09 19:42 
Question[Message Deleted] Pin
Alex@9C29-Jan-09 18:01
Alex@9C29-Jan-09 18:01 
AnswerRe: Arabic string format issue Pin
Joseph Marzbani29-Jan-09 20:37
Joseph Marzbani29-Jan-09 20:37 
GeneralRe: Arabic string format issue Pin
Alex@9C29-Jan-09 20:53
Alex@9C29-Jan-09 20:53 
QuestionHide Dialog Application Pin
Davitor29-Jan-09 17:36
Davitor29-Jan-09 17:36 
AnswerRe: Hide Dialog Application Pin
Naveen29-Jan-09 17:50
Naveen29-Jan-09 17:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.