• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 588
  • Last Modified:

initialize active X from code..

I have a very basic question...

I am working with MFC activeX control and am using it in MFC dialog box app

I want to set initial preoperties of activeX from code...I am unable to find a proper dialog box event on which I can initilize my control...I tried onInitDialog but ActiveX apprantly doesnt exist at that time...

thanks in advance
0
kuchnaheen
Asked:
kuchnaheen
1 Solution
 
AndyAinscowCommented:
>>I tried onInitDialog

It should exist note however you MUST have CDialog::OnInitDialog before you attempt anything with any window on the dialog, I suspect you had it before that line.
0
 
kuchnaheenAuthor Commented:
thanks

it works now
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now