Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Close Dialog Pin
valikac17-Jul-06 8:35
valikac17-Jul-06 8:35 
AnswerRe: Close Dialog Pin
David Crow17-Jul-06 9:49
David Crow17-Jul-06 9:49 
AnswerRe: Close Dialog Pin
Hamid_RT18-Jul-06 19:06
Hamid_RT18-Jul-06 19:06 
QuestionCommunicating with top level form from child forms Pin
mrhonus17-Jul-06 7:53
mrhonus17-Jul-06 7:53 
AnswerRe: Communicating with top level form from child forms Pin
William.Wang17-Jul-06 16:10
William.Wang17-Jul-06 16:10 
AnswerRe: Communicating with top level form from child forms Pin
Hamid_RT17-Jul-06 19:29
Hamid_RT17-Jul-06 19:29 
GeneralRe: Communicating with top level form from child forms Pin
mrhonus18-Jul-06 5:58
mrhonus18-Jul-06 5:58 
QuestionDialog Based ActiveX Control Pin
MissingLinkError17-Jul-06 7:41
MissingLinkError17-Jul-06 7:41 
I have created an ActiveX Control using VC6 with MFC Automation built in. I'm able to add the control to a VB6 form and run it successfully(for most parts : I'm not able to observe any of the events fired within the control). Anyway, the real problem is when I try to use the ActiveX control in a VC6 Dialog based app. it crashes on me at design time, right after I 'Insert ActiveX Control' into the Dialog. It triggers a 'Debug Assertion' within the MS VC6 IDE and then shuts down the IDE. Verrrry frustrating...

I think I may have narrowed it down to the OnDraw method for the control:

Within the Control I have a member called 'configPanel' derived from CDialog, which is used to control runtime settings for the Control. It contains several components: buttons, edit box, check boxes, etc... I've implemented the OnCreate for the Control, as well as for the child 'configPanel'. I'm using the MoveWindow to size and position the 'configPanel'. See code below. This works fine in the VB6 container but won't even place the component in the CDialog container at design time. Note: the code below will work using the GDI functions, but bombs with the 'MoveWindow'. How do I go about rendering the child dialog 'configPane' and its control components(button, edit box, etc...)????

<br />
void CSomeCtrl::OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)<br />
{<br />
      CBrush brBackGrn(RGB(255,100,100));		<br />
      pdc->FillRect(rcBounds, &brBackGrn);<br />
<br />
      CRect rcPanelRect(rcBounds.TopLeft(),CSize(rcBounds.Width(),rcBounds.Height()/4));<br />
//    configPanel.MoveWindow(rcPanelRect,TRUE);<br />
<br />
}<br />


Someone please enlighten me!
You are my last, greatest hope...

MissingLinkError
AnswerRe: Dialog Based ActiveX Control Pin
nguyenvhn17-Jul-06 15:49
nguyenvhn17-Jul-06 15:49 
QuestionDoing print abort with a toolbar button Pin
CodeBrain17-Jul-06 6:40
CodeBrain17-Jul-06 6:40 
AnswerRe: Doing print abort with a toolbar button Pin
led mike17-Jul-06 7:08
led mike17-Jul-06 7:08 
GeneralRe: Doing print abort with a toolbar button Pin
CodeBrain17-Jul-06 8:42
CodeBrain17-Jul-06 8:42 
Questionfstream - reading from a text file Pin
jon-8017-Jul-06 6:28
professionaljon-8017-Jul-06 6:28 
AnswerRe: fstream - reading from a text file Pin
Cedric Moonen17-Jul-06 6:35
Cedric Moonen17-Jul-06 6:35 
AnswerRe: fstream - reading from a text file Pin
toxcct17-Jul-06 6:36
toxcct17-Jul-06 6:36 
QuestionHow to get data in a grid control of a property page to another property page Pin
vc++_fragrance17-Jul-06 6:25
vc++_fragrance17-Jul-06 6:25 
QuestionAlways Show Button on Foreground Pin
Vaibhavsh8317-Jul-06 6:24
Vaibhavsh8317-Jul-06 6:24 
AnswerRe: Always Show Button on Foreground Pin
PJ Arends17-Jul-06 19:42
professionalPJ Arends17-Jul-06 19:42 
Questionhow to pass value to MFC exe Pin
maharaja pandian17-Jul-06 6:00
maharaja pandian17-Jul-06 6:00 
AnswerRe: how to pass value to MFC exe Pin
Cedric Moonen17-Jul-06 6:37
Cedric Moonen17-Jul-06 6:37 
GeneralRe: how to pass value to MFC exe Pin
maharaja pandian17-Jul-06 19:26
maharaja pandian17-Jul-06 19:26 
AnswerRe: how to pass value to MFC exe Pin
David Crow17-Jul-06 6:47
David Crow17-Jul-06 6:47 
GeneralRe: how to pass value to MFC exe Pin
maharaja pandian17-Jul-06 19:28
maharaja pandian17-Jul-06 19:28 
QuestionRe: how to pass value to MFC exe Pin
David Crow18-Jul-06 2:36
David Crow18-Jul-06 2:36 
AnswerRe: how to pass value to MFC exe Pin
William.Wang17-Jul-06 16:20
William.Wang17-Jul-06 16:20 

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.