|
I changed the code i placed the OnOK() after switch but dialog box is not closing. still the 2nd window is open .. can plz tell me anymore solutins??
|
|
|
|
|
When you are calling the next dialog witn DoModal use EndDialog() before calling the next dialog.
|
|
|
|
|
call CDialog::OnOk imeediately before switch
-- modified at 5:03 Monday 10th April, 2006
|
|
|
|
|
Hi
yes, before calling the domodal fr any dialog destroy the previous one by using EndDialog.
But I would suggest you implement the child dialog concept. So that when you close the first dialog you will not get he flickering effect. adn there you willnot face problem for closing and switching betwen the dialogs.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Keep it simple - open both (the 2nd and 3rd) from the 1st dialog. When the second dialog is closed it will return a value indicating what button/command was used to close it.
So you can, for example, open the third dialog if the second one returned IDOK .
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
parichaybp wrote: Please can anyone tell me how to close...dialog window??
To close a modal dialog, simply call EndDialog() .
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
can spmebody pls advice me how to fire IHTMLSelectElement onchange event.. i tried IHTMLWindow2 execscript......... but this does not work since the javascript function uses this pointer
|
|
|
|
|
Can I add a new interface to existing activex control. I want to add new methods and adding them under current interface seems to be dangerous. I want to add then under new interface. Any help on it ?
Best Regards,
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
-- modified at 2:46 Monday 10th April, 2006
|
|
|
|
|
Identity Undisclosed wrote: adding them under new interface seems to be dangerous.
Add new functionality to an ActiveX control by adding a new interface is the norm.
Steve
|
|
|
|
|
Oh sorry. You can see the modified post.
Yeah I want to add new functionality by adding interface. Please any help on it. Any link or article.
I shall be thankful to u.
Best Regards,
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
|
|
|
|
|
Can you be more specific? Do you have the source? Is it written with ATL, MFC, straight C/C++ or some other framework?
Steve
|
|
|
|
|
Yeah I have the source. It is written in MFC.
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
|
|
|
|
|
Are you using IDispatch an based interface?
Steve
|
|
|
|
|
How to make an owner drwan Picture Box in ATL ( not using MFC support). My aim to make the picture transparent in the dialog.
I am using ATL composite control dialog. But in the Picture Control, there is no Owner draw property listed in Property Window. I manuall modified rc file and add SS_OWNERDRAW, But i am not gettiing the WM_DRAWITEM message....
I did try to set owner draw
::SetWindowLong( ::GetDlgItem( m_hWnd, IDC_STATIC_PIC ), GWL_STYLE, (::GetWindowLong(::GetDlgItem( m_hWnd, IDC_STATIC_PIC ), GWL_STYLE ) )| SS_OWNERDRAW );
also by SendDlgItemMessage()
Since the I am not getting WM_DRAWITEM to my ATL dialog, i cant do anything to make picture box the transparent.
Any suggestion , code are welcome
Thanks
|
|
|
|
|
hey..
i am learning activeX programming using VC6 ..i want to remove, from the property pages the tabs for stock properties e.g font,color etc.
how to do it?
thanks
|
|
|
|
|
i want to monitor the prediefined registry keys.
select one of the root reigistry directory then monitor tht root directory
display registry key name ,value and status, so how i can retrive these name value n status into list control.....
Plz Help me.....
|
|
|
|
|
Well, you could start by searching MSDN for the registry functions, or you could search CP for a registry helper/tutorial/library. Then maybe you could start reading what you find and learn how to use the registry.
What you are asking is very easy, a little too easy infact.
|
|
|
|
|
i searched MSDN.But ididnt find any registry function how i retrive key name send values
|
|
|
|
|
You can use RegEnumKeyEx to enumerate subkeys.
Use RegEnumValue to enumerate the values of a specific key.
Use RegNotifyChangeKeyValue for change notification.
Steve
|
|
|
|
|
Hi waldermort ,
(Do you find your answer?LNK2005)
please tell me why you said this is easy?
It's not easy because
example:
(I'm new to visuall c and then I have question similar to this)
well Is this easy for me?
|
|
|
|
|
WhiteSky wrote: (Do you find your answer?LNK2005)
Yes I found the answer to my LNK1169 thanks to the help of some better experienced forum users. Though I don't see how this relates to the OP's question.
OK, granted, the question may be a little difficult for some people. After all you need to be a brain surgeon to type in 'registry' to the MSDN search box. I stand by my answer in that the OP should search before posting, which if he had done he could either have tried the function and asked for help with his errors, or simply state that he does not understand them.
If you re-read my LNK1169 thread, I think you will find I had stated exactly what I had coded, how I had tried to fix and that I still couldn't understand why, hence my post. I did not simply write "I have a link error how can I fix it?".
|
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
Hi. i have a edit box named as NAME and a OK button in a dialog box.initially when the dialog box is loaded the OK button will be disabled. when i enter a character in edit box the OK button shud be enabled. if the edit box is empty then OK button must be disabled.
Also i have one more edit box called as "location" which contains some text. as and when i type sumthing in "NAME" edit box,it shud be appended with text in "location" edit box.how do i do this and where shud i add the code.
pls help
Thanks
|
|
|
|