Click here to Skip to main content
15,888,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: mfc drawing philosophy question - when is the correct time to draw? Pin
Justin Tay26-Jul-06 5:34
Justin Tay26-Jul-06 5:34 
QuestionConvert CString to Unsigned short & Vice Versa Pin
JBAK_CP25-Jul-06 13:00
JBAK_CP25-Jul-06 13:00 
AnswerRe: Convert CString to Unsigned short &Vice Versa Pin
Justin Tay25-Jul-06 13:15
Justin Tay25-Jul-06 13:15 
QuestionBitmap associated with a static control Pin
cphawk25-Jul-06 12:09
cphawk25-Jul-06 12:09 
AnswerRe: Bitmap associated with a static control Pin
sudeesh26-Jul-06 2:40
sudeesh26-Jul-06 2:40 
QuestionCan't find files Pin
jimNLX25-Jul-06 11:52
jimNLX25-Jul-06 11:52 
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 

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.