Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReverse Spin Pin
Anorexic Tribble18-Jul-07 1:58
Anorexic Tribble18-Jul-07 1:58 
AnswerRe: Reverse Spin Pin
John R. Shaw18-Jul-07 2:15
John R. Shaw18-Jul-07 2:15 
GeneralRe: Reverse Spin Pin
Anorexic Tribble18-Jul-07 2:34
Anorexic Tribble18-Jul-07 2:34 
GeneralRe: Reverse Spin Pin
John R. Shaw18-Jul-07 3:25
John R. Shaw18-Jul-07 3:25 
AnswerRe: Reverse Spin Pin
David Crow18-Jul-07 2:36
David Crow18-Jul-07 2:36 
QuestionI have problem in Video Capture from web camera Pin
yaminisridaran18-Jul-07 1:56
yaminisridaran18-Jul-07 1:56 
QuestionRe: I have problem in Video Capture from web camera Pin
Mark Salsbery18-Jul-07 6:12
Mark Salsbery18-Jul-07 6:12 
QuestionChanging the Parent of ActiveX Control at runtime Pin
naveen.V18-Jul-07 1:41
naveen.V18-Jul-07 1:41 
Hi Folks,

How can I change the ParentWindow of an ActiveX Control dynamically... I'll Explain what I have done...

I have an ActiveX Control placed statically on the Main Dialog(this Dialog being the first parent of the ActiveX Control).Then I am creating another Parent(a Modeless Dialog ) on the button click Event of the main dialog..After Creating this modeless dialog.. I am changing the parent of the ActiveX Control from the Main Dialog to the new created modeless Dialog..So far fine...the ActiveX Control was moving to the new parent too..but if I click on the ActiveX Control on the new Parent..it is jumping backto the Old Parent(the Main Dialog)...this is happening only with ActiveX Controls...(I tried wid many ActiveX Controls)...Can Anyone provide some solution or atleast throw some light on it.. This is what I have written(slightly modified)

myModeless = new CNewDlg(NULL); // myModeless is pointer to new dialog to be created

if (myModeless->Create(IDD_DIALOG1) == TRUE)
{
myModeless->ShowWindow(TRUE);
}

CCalendar *aBtn = ((CCalendar *)GetDlgItem(IDC_CALENDAR1));
CRect aCtrlRect;
aBtn->GetClientRect(aCtrlRect);

if(NULL != myModeless)
{

aBtn->SetParent(myModeless);

aBtn->MoveWindow(aCtrlRect);
}

Regards
Naveen.V
Questionrestrict control being active by default Pin
kiranin18-Jul-07 1:05
kiranin18-Jul-07 1:05 
QuestionRe: restrict control being active by default Pin
David Crow18-Jul-07 2:39
David Crow18-Jul-07 2:39 
QuestionRe: restrict control being active by default Pin
Hamid_RT25-Jul-07 8:40
Hamid_RT25-Jul-07 8:40 
QuestionVista and caption bar Pin
jung-kreidler18-Jul-07 0:38
jung-kreidler18-Jul-07 0:38 
AnswerRe: Vista and caption bar Pin
Paresh Chitte18-Jul-07 19:36
Paresh Chitte18-Jul-07 19:36 
QuestionAccess Violation. Pin
p_18-Jul-07 0:30
p_18-Jul-07 0:30 
AnswerRe: Access Violation. Pin
Cedric Moonen18-Jul-07 0:50
Cedric Moonen18-Jul-07 0:50 
GeneralRe: Access Violation. Pin
p_18-Jul-07 0:57
p_18-Jul-07 0:57 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 1:06
Cedric Moonen18-Jul-07 1:06 
GeneralRe: Access Violation. Pin
p_18-Jul-07 1:09
p_18-Jul-07 1:09 
GeneralRe: Access Violation. Pin
toxcct18-Jul-07 1:13
toxcct18-Jul-07 1:13 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 1:16
Cedric Moonen18-Jul-07 1:16 
GeneralRe: Access Violation. Pin
p_18-Jul-07 1:28
p_18-Jul-07 1:28 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 2:12
Cedric Moonen18-Jul-07 2:12 
GeneralRe: Access Violation. Pin
toxcct18-Jul-07 1:13
toxcct18-Jul-07 1:13 
QuestionRe: Access Violation. Pin
David Crow18-Jul-07 2:41
David Crow18-Jul-07 2:41 
Questionhelp with files Pin
josip cagalj17-Jul-07 23:53
josip cagalj17-Jul-07 23:53 

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.