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

C / C++ / MFC

 
AnswerRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 19:56
Cillieacc0rd5o427-Jun-05 19:56 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus27-Jun-05 20:02
protectorChristian Graus27-Jun-05 20:02 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 20:08
Cillieacc0rd5o427-Jun-05 20:08 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 21:24
Cillieacc0rd5o427-Jun-05 21:24 
GeneralRe: If Else inside Switch possible ? Pin
David Crow28-Jun-05 2:47
David Crow28-Jun-05 2:47 
AnswerRe: If Else inside Switch possible ? Pin
David Crow28-Jun-05 2:38
David Crow28-Jun-05 2:38 
AnswerRe: If Else inside Switch possible ? Pin
John R. Shaw29-Jun-05 9:41
John R. Shaw29-Jun-05 9:41 
GeneralTransfer of data between Embedded property pages to the main property pages Pin
Member 3238127-Jun-05 19:34
Member 3238127-Jun-05 19:34 
Problem : I have a dialog wherein i have a "Main" property sheet and one of the property pages of this sheet have a Tree control and an embedded "SubSheet" property sheet. I wanted to transfer data from one of the embedded "SubSheet" property pages to the tree Control which is in the Outer "Main" property page. Could u help me out in anyways. Is there any way of doing it. I am posting code which is the code in the main property page.

class CSanSettings : public CPropertyPage
{
DECLARE_DYNAMIC(CSanSettings)

public:
CSanSettings();
virtual ~CSanSettings();

// Dialog Data
enum { IDD = IDD_SANSETTINGS };

protected:
CPropertySheet m_SubSheet;
CSanDetails m_SanDetPage;
CAddSwitch m_AddSwtPage;
CScanSubnet m_ScanSubnetPage;
CFabricDetails m_FabricDetPage;
CSwitchDetails m_SwtDetPage;
CTestConnect m_TestConPage;

virtual BOOL OnInitDialog();
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()

public:
CTreeCtrl m_San_Display;
afx_msg LRESULT OnMyCode(WPARAM t1,LPARAM t2);
};


BOOL CSanSettings::OnInitDialog()
{
CDialog::OnInitDialog();

m_SubSheet.AddPage(&m_SanDetPage);
m_SubSheet.AddPage(&m_AddSwtPage);
m_SubSheet.AddPage(&m_ScanSubnetPage);
m_SubSheet.AddPage(&m_FabricDetPage);
m_SubSheet.AddPage(&m_SwtDetPage);
m_SubSheet.AddPage(&m_TestConPage);

m_SubSheet.Create(this, WS_CHILD | WS_VISIBLE, 0);
m_SubSheet.ModifyStyleEx (0, WS_EX_CONTROLPARENT);
m_SubSheet.ModifyStyle( 0, WS_TABSTOP );

CRect rcSheet;
GetDlgItem( IDC_SHEET2 )->GetWindowRect( &rcSheet );
ScreenToClient( &rcSheet );
m_SubSheet.SetWindowPos( NULL, 20, 160, 0, 0,
SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE );


// return TRUE;
// return TRUE unless you set the focus to a control
}


Hemanth
GeneralRe: Transfer of data between Embedded property pages to the main property pages Pin
Rage27-Jun-05 21:23
professionalRage27-Jun-05 21:23 
GeneralConversion from String to Time_t Pin
Jun_Misugi27-Jun-05 18:45
Jun_Misugi27-Jun-05 18:45 
GeneralRe: Conversion from String to Time_t Pin
David Crow28-Jun-05 2:52
David Crow28-Jun-05 2:52 
GeneralRe: Conversion from String to Time_t Pin
Jun_Misugi28-Jun-05 6:04
Jun_Misugi28-Jun-05 6:04 
GeneralRe: Conversion from String to Time_t Pin
David Crow28-Jun-05 6:08
David Crow28-Jun-05 6:08 
Generalicon/image in status bar Pin
wasife27-Jun-05 18:01
wasife27-Jun-05 18:01 
GeneralRe: icon/image in status bar Pin
Christian Graus27-Jun-05 18:18
protectorChristian Graus27-Jun-05 18:18 
GeneralHELP... Urgent - Specifying Printer "Output Tray" (Output Bin) Pin
RYU^^27-Jun-05 17:55
RYU^^27-Jun-05 17:55 
QuestionHow to change task-list icon? Pin
Nerd-o-rama27-Jun-05 16:38
Nerd-o-rama27-Jun-05 16:38 
QuestionHow to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 14:50
zhaopi27-Jun-05 14:50 
AnswerRe: How to Create Radio buttons dynamically Pin
Christian Graus27-Jun-05 15:04
protectorChristian Graus27-Jun-05 15:04 
GeneralRe: How to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 15:16
zhaopi27-Jun-05 15:16 
GeneralRe: How to Create Radio buttons dynamically Pin
Christian Graus27-Jun-05 15:28
protectorChristian Graus27-Jun-05 15:28 
GeneralRe: How to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 15:37
zhaopi27-Jun-05 15:37 
GeneralRe: How to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 15:45
zhaopi27-Jun-05 15:45 
GeneralRe: How to Create Radio buttons dynamically Pin
Christian Graus27-Jun-05 15:55
protectorChristian Graus27-Jun-05 15:55 
GeneralRe: How to Create Radio buttons dynamically Pin
David Crow28-Jun-05 2:56
David Crow28-Jun-05 2:56 

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.