Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert a CString to ... Pin
kelthar15-Jan-02 11:57
kelthar15-Jan-02 11:57 
GeneralRe: How to convert a CString to ... Pin
Derek Waters15-Jan-02 12:06
Derek Waters15-Jan-02 12:06 
Generalenumerating monspaced fonts Pin
alex.barylski15-Jan-02 8:52
alex.barylski15-Jan-02 8:52 
GeneralRe: enumerating monspaced fonts Pin
Joaquín M López Muñoz15-Jan-02 9:57
Joaquín M López Muñoz15-Jan-02 9:57 
GeneralGraphic layers in VC++ Pin
Fred D.15-Jan-02 8:51
Fred D.15-Jan-02 8:51 
GeneralRe: Graphic layers in VC++ Pin
Joaquín M López Muñoz15-Jan-02 9:13
Joaquín M López Muñoz15-Jan-02 9:13 
GeneralRe: Graphic layers in VC++ Pin
Christian Graus15-Jan-02 9:59
protectorChristian Graus15-Jan-02 9:59 
GeneralDialogs in a CFormView Pin
Claude Gagnon15-Jan-02 7:28
Claude Gagnon15-Jan-02 7:28 
Hi,

I want to change dialog form in a CFormView.

I can change the dialogs, but when I click on the second dialog for example, if the mouse is over a control of the first form, this control appears.

How can I disable the controls on the other dialogs form.

The method ShowWindow(SW_HIDE)doesn't work as DestroyWindow and as EnableWindow.


Anybody has hints ???


Thanks,

Claude



void CPoteauView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
// TODO: Add your specialized code here and/or call the base class
CPoteauDoc* pDoc = GetDocument();

CDialog* m_viewDial[3];

m_viewDial[0] = new CEnter;
m_viewDial[1] = new CDeux;
m_viewDial[2] = new CTroisDia;

m_viewDial[0]->Create(IDD_DIALOG1, this);
m_viewDial[1]->Create(IDD_DIALOG2, this);
m_viewDial[2]->Create(IDD_DIALOG3, this);


if (pDoc->m_nView == 0)
{
m_viewDial[0]->ShowWindow(SW_SHOW);
m_viewDial[1]->ShowWindow(SW_HIDE);
m_viewDial[2]->ShowWindow(SW_HIDE);
}

if (pDoc->m_nView == 1)
{
m_viewDial[0]->ShowWindow(SW_HIDE);
m_viewDial[1]->ShowWindow(SW_SHOW);
m_viewDial[2]->ShowWindow(SW_HIDE);
}

if (pDoc->m_nView == 2)
{
m_viewDial[0]->ShowWindow(SW_HIDE);
m_viewDial[1]->ShowWindow(SW_HIDE);
m_viewDial[2]->ShowWindow(SW_SHOW);
}
}

Claude
GeneralRe: Dialogs in a CFormView Pin
Not Active15-Jan-02 9:03
mentorNot Active15-Jan-02 9:03 
GeneralRe: Dialogs in a CFormView Pin
Joaquín M López Muñoz15-Jan-02 9:15
Joaquín M López Muñoz15-Jan-02 9:15 
GeneralSQL problem ! Pin
Hadi Rezaee15-Jan-02 6:13
Hadi Rezaee15-Jan-02 6:13 
GeneralRe: SQL problem ! Pin
Joaquín M López Muñoz15-Jan-02 8:01
Joaquín M López Muñoz15-Jan-02 8:01 
GeneralRe: SQL problem ! Pin
Hadi Rezaee15-Jan-02 10:01
Hadi Rezaee15-Jan-02 10:01 
GeneralPerplexed Pin
Stan the man15-Jan-02 5:20
Stan the man15-Jan-02 5:20 
GeneralRe: Perplexed Pin
Joaquín M López Muñoz15-Jan-02 7:54
Joaquín M López Muñoz15-Jan-02 7:54 
GeneralDirect X Pin
15-Jan-02 1:22
suss15-Jan-02 1:22 
GeneralRe: Direct X Pin
Christian Graus15-Jan-02 1:33
protectorChristian Graus15-Jan-02 1:33 
GeneralRe: Direct X Pin
Hadi Rezaee15-Jan-02 6:10
Hadi Rezaee15-Jan-02 6:10 
GeneralRe: Direct X Pin
Vladimir Georgiev16-Jan-02 3:43
Vladimir Georgiev16-Jan-02 3:43 
GeneralRe: Direct X Pin
Hadi Rezaee16-Jan-02 6:56
Hadi Rezaee16-Jan-02 6:56 
GeneralFile and Folder! Pin
Mazdak15-Jan-02 1:17
Mazdak15-Jan-02 1:17 
GeneralRe: File and Folder! Pin
Christian Graus15-Jan-02 1:26
protectorChristian Graus15-Jan-02 1:26 
GeneralRe: File and Folder! Pin
Mazdak15-Jan-02 1:36
Mazdak15-Jan-02 1:36 
GeneralRe: File and Folder! Pin
Christian Graus15-Jan-02 1:47
protectorChristian Graus15-Jan-02 1:47 
GeneralMFC*.dll Pin
15-Jan-02 1:11
suss15-Jan-02 1:11 

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.