//to the Tab Control increase five page
M_tab. InsertItem (0, _T (" user payment details "));
M_tab. InsertItem (1, _T (" balance of payments statistics and information "));
Chart m_tab. InsertItem (2, _T (" statistical information "));
M_tab. InsertItem (3, _T (" software use log "));
//create dialog
M_page1. Create (IDD_PAGE1, & amp; M_tab);
M_page2. Create (IDD_PAGE2, & amp; M_tab);
M_page3. Create (IDD_PAGE3, & amp; M_tab);
M_page4. Create (IDD_PAGE4, & amp; M_tab);
Page created in the first two are no problem, but it occurs when the third problem, error location: ACOleControlSiteOrWnd * pTemp=
New COleControlSiteOrWnd (
HwndCtrl,
POccDlgInfo - & gt; M_pItemInfo [I] bAutoRadioButton);
The hwndCtrl is empty, this is the inside of the library file, I don't know why is empty, how to change my code?
CodePudding user response:
The original poster is just learning MFC? Are you interested in look at c + + Builder?The graphical user interface can learn c + + Builder, architecture is advanced, it is easy to entry
Fyi:
For beginners to learn c + + Builder first program (simulated chat rooms), classic!
http://blog.163.com/tab_98/blog/static/11924097201693033057497/
C + + Builder drawing sample (analog clock)
http://blog.163.com/tab_98/blog/static/11924097201611324819376/
From C to C + + Builder menu interface management system of the graphical user interface, a simple address book example Demo
http://blog.163.com/tab_98/blog/static/1192409720158673337998/
Written by c + + Builder "ZEC blackjack game of CARDS"
http://blog.163.com/tab_98/blog/static/119240972016115113039304/
Written by c + + Builder "ZEC zombie version whack-a-mole"
http://blog.163.com/tab_98/blog/static/11924097201601084117748/
Book recommendation:
"C + + Builder 6 program design course (second edition)" (such as loyal lu, wen-liang liu/2011-04-01/science press)
"C + + Builder6 programming instance essence solution" (Zhao Mingxian), PDF, is a digital version, a scan version, there is also a complete implementation of tetris game,
"Wonderful" c + + Builder 6 programming Wu Yixian (Taiwan), there are a few simple little game, 10 can read later rewrite, is their mastery of the,
"C + + Builder 5 senior programming examples of fine solution" (written by Liu Bin) are larger practical application,