|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionThe Note that you shouldn't add anything to your resources and shouldn't describe the relations between controls. Just make the corresponding size and position of your controls and use the functions: void addControls(int count, bool connectVertical, ...); void addControl(int id);
Demo project shows using these automatically added
controls in
Using the classThe simplest way is to use the
// in header class CTestDlg1 : public ZSplitterDlgImpl<CPropertyPage> // in source CTestDlg1::CTestDlg1() : /*...*/ ZSplitterDlgImpl<CPropertyPage>(CTestDlg1::IDD) {} BEGIN_MESSAGE_MAP(CTestDlg1, ZSplitterDlgImpl<CPropertyPage>) // ... END_MESSAGE_MAP() BOOL CTestDlg1::OnInitDialog() { // ... and use addControl(s) function here init(); // ... } The The I remade a little
This is a sample of your dialog in resource editor:
And user can change it in such way in runtime.
You should use the addControls(2,false,IDC_LIST6,IDC_LIST7); addControls(2,true,IDC_LIST1,IDC_LIST8); addControl(IDC_LIST9); addControl(IDC_LIST2); addControl(IDC_LIST3); addControl(IDC_LIST4); addControl(IDC_LIST5);
Moreover you can manually add a
To Do listI'd like to make the look (color, size, effects) of the splitter more presentable. So I want to get comments from you. First of all: is this technique useful to you? Note
Make sure to check out the my web site which is more likely to have updates and betas:
|
||||||||||||||||||||||