I would like to disable some (or all) TabStops in a dialog box.
the following:
dlg.m_MyWord.TabStop=FALSE;
produces the error: TabStop is not a member of CString.
where m_MyWord identifies a ReadOnly edit window.
What did i do wrong?
TIA
Printable View
I would like to disable some (or all) TabStops in a dialog box.
the following:
dlg.m_MyWord.TabStop=FALSE;
produces the error: TabStop is not a member of CString.
where m_MyWord identifies a ReadOnly edit window.
What did i do wrong?
TIA
I'm guessing you're used to VB ? MFC apps don't usually have those kinds of 'properties'.
Enableing/Disabling tabstop will take a bit more effort than that.
I'm assuming here that m_MyWord is a control variable (CEdit ?) and not a regular value type (int, word, dword...)
In that case, you'd use following:
to enable tabstop:
m_MyWord.ModifyStyle(0, WS_TABSTOP);
to disable tabstop
m_MyWord.ModifyStyle(WS_TABSTOP, 0);
Using MFC, at design time you can just uncheck the "Tab Stop" check box
Alternatively you can put some code in the OnTabStop functions if you want it to do really neat things which VB can't do :D