Visual C++ and MFC Fundamentals Chapter 12: Dialog-Based Windows
The thick frame style is defined as
#define WS_THICKFRAME 0x00040000L
Practical Learning: Adding Borders to a Control
- Change the Class name to static
- To add a simple border to the custom control, combine the child, the visible and the
thick frame styles to give a value of 0x50040000 to its Style field - Test the application
- Close it and return to MSVC
11.4.5..Tab Sequence.......................................................................................
When using the controls of a dialog, the user may choose to press Tab to navigate from
one control to another. This process follows a sequence of controls that can receive input
in an incremental order. To include a control in this sequence, at design time, set its Tab
Stop property to True.
If you are creating your control with code, to make sure that it can fit in the tab sequence,
add the WS_TABTOP style. Here is an example:
void CSecondDlg::OnThirdControl()
{
// TODO: Add your control notification handler code here
Memo->Create("EDIT", "Voice Recorder",
WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, );
CWnd *CanTab = new CWnd;
CanTab->Create("BUTTON", "&Apply",