摘要:
DLGTEMPLATE和DLGITEMTEMPLATE一般后面直接跟3个word数组,通常他们都是按照DWORD对齐的,三个数组分别表示menu、class和title,DLGITEMTEMPLATE是紧跟着DLGTEMPLATE出现的,可以有多个,每个表示DLGTEMPLATE中的一个控件。这个vc sample中的dlgtemp的示例中有介绍: // The first step is to allocate memory to define the dialog. The information to be // stored in the allocated buffer is the 阅读全文
摘要:
主要运用RepositionBars()函数,对对话框中的控件进行布局,代码放在OnInitDialog()中:BOOL C************::OnInitDialog(){ CModelessDialog::OnInitDialog(); // Create status bar at the bottom of the dialog window if (m_statusBar.Create(this)) { m_statusBar.SetIndicators(m_lpaIDStatusBar, m_cIDStatusBar); OnSetMessageString(AFX_IDS 阅读全文