Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery18-Dec-06 15:30
Mark Salsbery18-Dec-06 15:30 
GeneralRe: Tab Control in existing dialog box [modified] Pin
acerunner31618-Dec-06 15:35
acerunner31618-Dec-06 15:35 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery19-Dec-06 6:23
Mark Salsbery19-Dec-06 6:23 
GeneralRe: Tab Control in existing dialog box [modified] Pin
acerunner31619-Dec-06 8:30
acerunner31619-Dec-06 8:30 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery19-Dec-06 9:05
Mark Salsbery19-Dec-06 9:05 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31619-Dec-06 13:47
acerunner31619-Dec-06 13:47 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery19-Dec-06 15:33
Mark Salsbery19-Dec-06 15:33 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31619-Dec-06 15:55
acerunner31619-Dec-06 15:55 
The main window is a CDialog, and so are the two child tab windows. All generated in resource editor.

I've removed theOnSysCommand, OnPaint, and OnQueryDragIcon from the original main window, and added into the new main window. OnInitDialog stayed but I removed the part that generates the about box. Not sure what to do about OnCancel, OnDestroy, and PostNcDestroy, so I left it as it is. To create the tabs I basically followed this example exactly (http://www.codersource.net/mfc_ctabctrl.html).

The error is "Unhandled exception in [myappname].exe (NTDLL.DLL): 0xC0000005: Access Violation."

Thanks.
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 7:14
Mark Salsbery20-Dec-06 7:14 
GeneralRe: Tab Control in existing dialog box [modified] Pin
acerunner31620-Dec-06 9:52
acerunner31620-Dec-06 9:52 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 10:07
Mark Salsbery20-Dec-06 10:07 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 10:21
acerunner31620-Dec-06 10:21 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:20
Mark Salsbery20-Dec-06 11:20 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:43
Mark Salsbery20-Dec-06 11:43 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:51
Mark Salsbery20-Dec-06 11:51 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 12:21
acerunner31620-Dec-06 12:21 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 12:29
Mark Salsbery20-Dec-06 12:29 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 12:51
acerunner31620-Dec-06 12:51 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 12:56
Mark Salsbery20-Dec-06 12:56 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 10:54
acerunner31620-Dec-06 10:54 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 11:23
Mark Salsbery20-Dec-06 11:23 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 12:39
acerunner31620-Dec-06 12:39 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 12:47
Mark Salsbery20-Dec-06 12:47 
GeneralRe: Tab Control in existing dialog box Pin
acerunner31620-Dec-06 13:08
acerunner31620-Dec-06 13:08 
GeneralRe: Tab Control in existing dialog box Pin
Mark Salsbery20-Dec-06 13:19
Mark Salsbery20-Dec-06 13:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.