Click here to Skip to main content
15,914,780 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: COM DLL Registration Pin
HakunaMatada15-Apr-10 3:04
HakunaMatada15-Apr-10 3:04 
Questionoutlook 2007 automation Pin
tristan jung4-Apr-10 16:57
tristan jung4-Apr-10 16:57 
AnswerRe: outlook 2007 automation Pin
Garth J Lancaster4-Apr-10 18:42
professionalGarth J Lancaster4-Apr-10 18:42 
AnswerRe: outlook 2007 automation Pin
Stuart Dootson14-Apr-10 22:01
professionalStuart Dootson14-Apr-10 22:01 
QuestionTabPage Pin
atulskulkarni30-Mar-10 6:42
atulskulkarni30-Mar-10 6:42 
AnswerRe: TabPage Pin
LunaticFringe30-Mar-10 6:53
LunaticFringe30-Mar-10 6:53 
GeneralRe: TabPage Pin
atulskulkarni30-Mar-10 7:05
atulskulkarni30-Mar-10 7:05 
AnswerRe: TabPage Pin
Jonathan Davies30-Mar-10 7:40
Jonathan Davies30-Mar-10 7:40 
Build dialog classes and add controls using the graphical editor in the usual manner so the classes reference descriptions with an .rc file:
class CStatusDlg :	public CDialogImpl<CStatusDlg>,
{
    enum { IDD = IDD_STATUS };
    ...

Within the .rc file IDD_STATUS (in this case) describes the the dialog
IDD_STATUS DIALOGEX 0, 0, 589, 442
STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CLIENTEDGE
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
    PUSHBUTTON      "Update",IDC_BUTTON1,77,247,51,15
    GROUPBOX        "Drive Faults",IDC_STATIC,17,16,163,221
    ....

Then create the tab control and the dialog windows and add the dialog to the tabcontrol (Other dialogs similarly created can be added to other tabs on the same control in the same manner).
CTabView m_tabView;
CStatusDlg m_StatusDlg;

....

/// Create a tabbed view
m_tabView.Create(m_hWnd, rcDefault, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, WS_EX_CLIENTEDGE);

/// Create the first dialog based window to use as a tabbed view
m_StatusDlg.Create(m_tabView.m_hWnd,rcDefault, NULL);

....

/// Add the dialog based windows to the tab controls list (seems like a map with name/window pairs)
m_tabView.AddPage(m_StatusDlg.m_hWnd, _T("Status"));

....

QuestionGlobalInterfaceTable High CPU usage Pin
marko201019-Mar-10 10:06
marko201019-Mar-10 10:06 
QuestionSeeking introductory text on the STL Pin
RGodivala1-Mar-10 5:06
RGodivala1-Mar-10 5:06 
AnswerRe: Seeking introductory text on the STL Pin
Richard MacCutchan1-Mar-10 5:21
mveRichard MacCutchan1-Mar-10 5:21 
GeneralRe: Seeking introductory text on the STL Pin
sunlin728-Mar-10 5:41
sunlin728-Mar-10 5:41 
GeneralRe: Seeking introductory text on the STL Pin
Richard MacCutchan28-Mar-10 5:49
mveRichard MacCutchan28-Mar-10 5:49 
GeneralRe: Seeking introductory text on the STL Pin
sunlin728-Mar-10 20:29
sunlin728-Mar-10 20:29 
GeneralRe: Seeking introductory text on the STL Pin
Richard MacCutchan28-Mar-10 22:55
mveRichard MacCutchan28-Mar-10 22:55 
GeneralRe: Seeking introductory text on the STL Pin
sunlin729-Mar-10 4:47
sunlin729-Mar-10 4:47 
GeneralRe: Seeking introductory text on the STL Pin
Stuart Dootson28-Mar-10 8:03
professionalStuart Dootson28-Mar-10 8:03 
AnswerRe: Seeking introductory text on the STL Pin
LunaticFringe30-Mar-10 6:55
LunaticFringe30-Mar-10 6:55 
Questionuse of vector /map /list Pin
ramina sen24-Feb-10 22:59
ramina sen24-Feb-10 22:59 
AnswerRe: use of vector /map /list Pin
tasumisra25-Feb-10 0:41
tasumisra25-Feb-10 0:41 
QuestionPassing a string to a method that takes an IDispatch*? Pin
Rob Caldecott24-Feb-10 9:49
Rob Caldecott24-Feb-10 9:49 
AnswerRe: Passing a string to a method that takes an IDispatch*? Pin
Stuart Dootson24-Feb-10 21:01
professionalStuart Dootson24-Feb-10 21:01 
GeneralRe: Passing a string to a method that takes an IDispatch*? Pin
Rob Caldecott25-Feb-10 10:56
Rob Caldecott25-Feb-10 10:56 
GeneralRe: Passing a string to a method that takes an IDispatch*? Pin
Stuart Dootson25-Feb-10 11:36
professionalStuart Dootson25-Feb-10 11:36 
QuestionRun Only One Instance Of this AddOn In Multiple IE Win Pin
A_Fa24-Feb-10 3:06
A_Fa24-Feb-10 3:06 

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.