Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTab Control in existing dialog box Pin
acerunner31618-Dec-06 14:07
acerunner31618-Dec-06 14:07 
QuestionRe: Tab Control in existing dialog box Pin
Mark Salsbery18-Dec-06 15:01
Mark Salsbery18-Dec-06 15:01 
AnswerRe: Tab Control in existing dialog box Pin
acerunner31618-Dec-06 15:11
acerunner31618-Dec-06 15:11 
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 
Use whatever you want. They are all windows (have an HWND).

A dialog implies a dialog resource. If you are going to have a tab control with 2 tabs, each
containing a dialog then there is no reason to use a dialog to contain the tabs, inless you
have other controls placed around the tabs that are laid out in a DIALOG resource. If that's
the case then a dialog will work fine too.

The advantage of CFrameWnd over CWnd is the automagic handling of decorations - toolbar, status
bar, etc - and auto-sizing/positioning of an imbedded "client" window (around any decorations).
A CWnd will work fine. So will a dialog if that's what you need.

There's nothing wrong with handling it all yourself. You have complete control over all the
windows in your app.
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 
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 

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.