Click here to Skip to main content
15,886,088 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a step by step running Pin
David Crow12-Nov-04 3:59
David Crow12-Nov-04 3:59 
Questionhow do u change the color of the frameof a picture control in a dialog??? Pin
namaskaaram12-Nov-04 3:03
namaskaaram12-Nov-04 3:03 
GeneralRemoving combo box from filedialog Pin
vilmer12-Nov-04 0:01
vilmer12-Nov-04 0:01 
GeneralRe: Removing combo box from filedialog Pin
David Crow12-Nov-04 3:29
David Crow12-Nov-04 3:29 
QuestionIntelliSense Gone !?!? Pin
Anonymous11-Nov-04 23:51
Anonymous11-Nov-04 23:51 
QuestionHow can several panels of a CTabCtrl share the same CComboBox ? Pin
Member 124237311-Nov-04 23:44
Member 124237311-Nov-04 23:44 
AnswerRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
BlackDice12-Nov-04 2:43
BlackDice12-Nov-04 2:43 
GeneralRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
Member 124237313-Nov-04 5:12
Member 124237313-Nov-04 5:12 
Hello,

not bad this idea ... I already had the same ... Wink | ;-) )
look at my code hereunder :

m_Tab.InsertItem( 0, "Tabnbr1");
m_Tab.InsertItem( 1, "Tabnbr22");
m_pTab1 = new CTab1;
m_pTab1->Create(CTab1::IDD, &m_Tab);
m_pTab1->SetWindowPos(NULL, 4, 28 , 0, 0,SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOZORDER);
m_pTab1->ShowWindow(SW_SHOW);
//
m_pTab2 = new CTab2;
m_pTab2->Create(CTab2::IDD, &m_Tab);
m_pTab2->SetWindowPos(NULL, 4, 28 , 0, 0,SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOZORDER);
m_pTab2->ShowWindow(SW_HIDE);
//
m_pDialogListe = new CTestDialogListe;
m_pDialogListe->Create(CTestDialogListe::IDD, &m_Tab); // solution1
m_pDialogListe->Create(CTestDialogListe::IDD, (CWnd*) m_pTab1); // solution2
m_pDialogListe->Create(CTestDialogListe::IDD, NULL);
m_pDialogListe->SetWindowPos(NULL, 4, 28 , 0, 0,SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOZORDER);
m_pDialogListe->ShowWindow(SW_SHOW);
As you can see, when we create the doughter dialog with the combo box in, we are obliged to give a parent.
If I give the Tab (solution1) as parent : ok, the combo is displayed on every panels, but is not accessable from any of the 2 panels.
If I give the panel1 (solution2) as parent : ok, the combo is displayed on panel1 and it works, but is even not displayed on panel 2. Is there a solution to make it appear and make it work on panel 2?
Thanks your your answer
DD
AnswerRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
David Crow12-Nov-04 3:33
David Crow12-Nov-04 3:33 
GeneralRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
Member 124237313-Nov-04 5:32
Member 124237313-Nov-04 5:32 
GeneralRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
David Crow13-Nov-04 5:52
David Crow13-Nov-04 5:52 
GeneralRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
Member 124237314-Nov-04 11:23
Member 124237314-Nov-04 11:23 
GeneralRe: How can several panels of a CTabCtrl share the same CComboBox ? Pin
David Crow15-Nov-04 3:41
David Crow15-Nov-04 3:41 
GeneralRe: TCP/IP Sockets Pin
22491711-Nov-04 23:07
22491711-Nov-04 23:07 
GeneralCreate device driver Pin
snthomas11-Nov-04 22:41
snthomas11-Nov-04 22:41 
GeneralRe: Create device driver Pin
22491712-Nov-04 0:54
22491712-Nov-04 0:54 
GeneralMain handle of MFC dialog Pin
Kreatief11-Nov-04 22:25
Kreatief11-Nov-04 22:25 
GeneralRe: Main handle of MFC dialog Pin
22491711-Nov-04 22:47
22491711-Nov-04 22:47 
GeneralRe: Main handle of MFC dialog Pin
Kreatief12-Nov-04 0:46
Kreatief12-Nov-04 0:46 
GeneralRe: Main handle of MFC dialog Pin
BlackDice12-Nov-04 2:46
BlackDice12-Nov-04 2:46 
GeneralRe: Main handle of MFC dialog Pin
David Crow12-Nov-04 3:35
David Crow12-Nov-04 3:35 
GeneralRe: Main handle of MFC dialog Pin
Kreatief12-Nov-04 4:51
Kreatief12-Nov-04 4:51 
Generalaaaaaaaaah.....help!!!!!my OnSetCursor()....doesnt work at all places!!!!!! Pin
namaskaaram11-Nov-04 22:19
namaskaaram11-Nov-04 22:19 
Generalconvert _int64 to double Pin
Member 147636711-Nov-04 22:15
Member 147636711-Nov-04 22:15 
GeneralRe: convert _int64 to double Pin
David Crow12-Nov-04 3:47
David Crow12-Nov-04 3:47 

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.