Click here to Skip to main content
15,898,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can't find files Pin
Justin Tay25-Jul-06 13:22
Justin Tay25-Jul-06 13:22 
QuestionTabCtrlSSL tab control code Pin
BuckBrown25-Jul-06 10:18
BuckBrown25-Jul-06 10:18 
Confused | :confused: Hi,
This is for anyone familiar with the TabCtrlSSL code.

I am using Viusal Studio 6.0 MFC. I downloaded the code for the tab control class CTabCtrlSSL and implemented it. Everything seems to be working fine except that the app does not appear to process the command messages. I had an existing dialog IDD_DIALOG_1 with button controls. I created a second dialog called IDD_DIALOG_TAB and placed a tab control in it. I created a variable for the control called m_ctrlTab of type CTabCtrlSSL. Then in the OnInitDialog() function of my TabCtrl class I call m_ctrlTab.AddSSLPage(("Tests"), nPageID++, IDD_DIALOG_1); If I click on any of the buttons in the IDD_DIALOG_1 (displayed as tab page 1) then the CTabPageSSL::OnCommand() function is called. If I click on OK or CANCEL buttons then the "return GetParent()->SendMessage (WM_COMMAND, wParam, lParam);" in the CTabPageSSL::OnCommand() function is called and returns a value of 1 and the application exits as I would expect. If I click on any other button then the "return GetParent()->SendMessage (WM_COMMAND, wParam, lParam);" function is called with wParam of 1022 (the IDD_DIALOG_1) but the function the button is supposed to invoke never executes. I have tried various handles from GetParent(), GetOwner(), GetParentOwner() but the SendMessage() function will return a value of 0 for these other buttons. I am not a Windows programmer so I am not very familiar with parent child relationships. The way I see it the dialog IDD_DIALOG_1 is a child of the tab dialog IDD_DIALOG_TAB. If anyone sees something obvious I could use some help on this.

Thanks,


Buck
QuestionPrecompiled header error Pin
Jay0325-Jul-06 8:41
Jay0325-Jul-06 8:41 
AnswerRe: Precompiled header error Pin
Zac Howland25-Jul-06 8:53
Zac Howland25-Jul-06 8:53 
AnswerRe: Precompiled header error Pin
Michael Dunn25-Jul-06 8:56
sitebuilderMichael Dunn25-Jul-06 8:56 
QuestionRe: Precompiled header error [modified] Pin
Jay0325-Jul-06 9:58
Jay0325-Jul-06 9:58 
AnswerRe: Precompiled header error Pin
Zac Howland25-Jul-06 10:02
Zac Howland25-Jul-06 10:02 
GeneralRe: Precompiled header error Pin
Jay0325-Jul-06 10:15
Jay0325-Jul-06 10:15 
QuestionDirectShow filter problem Pin
DobosCake25-Jul-06 5:38
DobosCake25-Jul-06 5:38 
AnswerRe: DirectShow filter problem Pin
cje26-Jul-06 10:53
cje26-Jul-06 10:53 
QuestionIMPLEMENT_SERIAL and MFC static linking Pin
bob1697225-Jul-06 5:13
bob1697225-Jul-06 5:13 
QuestionRe: IMPLEMENT_SERIAL and MFC static linking Pin
David Crow25-Jul-06 6:33
David Crow25-Jul-06 6:33 
AnswerRe: IMPLEMENT_SERIAL and MFC static linking Pin
bob1697225-Jul-06 7:24
bob1697225-Jul-06 7:24 
AnswerRe: IMPLEMENT_SERIAL and MFC static linking Pin
bob1697225-Jul-06 7:53
bob1697225-Jul-06 7:53 
AnswerRe: IMPLEMENT_SERIAL and MFC static linking [modified] Pin
Viorel.25-Jul-06 7:15
Viorel.25-Jul-06 7:15 
GeneralRe: IMPLEMENT_SERIAL and MFC static linking Pin
bob1697225-Jul-06 7:32
bob1697225-Jul-06 7:32 
GeneralRe: IMPLEMENT_SERIAL and MFC static linking Pin
Viorel.25-Jul-06 7:46
Viorel.25-Jul-06 7:46 
GeneralRe: IMPLEMENT_SERIAL and MFC static linking [modified] Pin
bob1697225-Jul-06 7:51
bob1697225-Jul-06 7:51 
QuestionE-mail processing Pin
Daniel Kanev25-Jul-06 4:31
Daniel Kanev25-Jul-06 4:31 
AnswerRe: E-mail processing Pin
Zac Howland25-Jul-06 4:57
Zac Howland25-Jul-06 4:57 
AnswerRe: E-mail processing Pin
Jim Crafton25-Jul-06 5:04
Jim Crafton25-Jul-06 5:04 
AnswerRe: E-mail processing Pin
David Crow25-Jul-06 6:29
David Crow25-Jul-06 6:29 
AnswerRe: E-mail processing Pin
ThatsAlok25-Jul-06 20:33
ThatsAlok25-Jul-06 20:33 
QuestionErrors: Pin
Ganesh_T25-Jul-06 4:15
Ganesh_T25-Jul-06 4:15 
QuestionRe: Errors: Pin
David Crow25-Jul-06 4:22
David Crow25-Jul-06 4:22 

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.