|
This can be done in the dialog's OnInitDialog() method (if using MFC), or in response to the WM_INITDIALOG message.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: This can be done in the dialog's OnInitDialog() method (if using MFC), or in response to the WM_INITDIALOG message.
yeah you have subclass to achieve desired result
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
I agree with ThatsAlok subclass is easy you need to id of buttons of File Dialog.
|
|
|
|
|
I try to add lzh header and lzh extend header before a file in order to make a lzh file manually. According to lzh format, I use "-ld0-" and level 0x01 so i can avoid to write compress codes. But after i add this header to a file, there is wrong when i open it with winrar. The Message is that file was damanged. I think the problem maybe take place in two ways:
1. I don't know hwo to get the checksum in lzh header.
2. CRC-16 maybe is wrong, i just copy the code from internet.
Can someone give me advice in this topic, some demonstrated codes are best.
Thanks.
|
|
|
|
|
I've tested in ActiveX test container which runs very well,when user have register such control,it runs quickly.But when I've use web to automatically register this control,it always represents red x on web.By the way,I use MFC activeX with MFC share DLL and open all the access right for activex control,meanwhile, I've add the server ip to trusted zone.Can somebody give me a help?
Later buggers harm more.
|
|
|
|
|
I think u r using a cab file for downloading the activex.
Is your control getting downloaded, jus check it in
Tools->Internet Options->General->View Objects in ur browser
This is the place your ActiveX once downloaded gets displayed.
UnRegister previous ActiveX registered , u can use regsvr32 -u cmd
|
|
|
|
|
ActiveX controls must exist on the machine your browser resides on (Downloading if necessary if the "codebase=" contains a valid path to the cab when not already installed on users machine). ActiveX controls, by default, have access to anything an executable has access to so when running them from within a browser, security restrictions kick in and protect people from running ActiveX controls that are not declared "Safe for scripting" in the registry. The control can also implement a specific interface to be "safe for scripting" if the programmer desires.
If you run the .htm file with an .hta extension on your local machine, browser security should not restrict you.
If this is not an option, then you will likely need to research the security restriction for ActiveX controls in browser based environments. Be forewarned, ActiveX controls are easy security breaches so their value in the web world was quickly diminished in the late 90's.
|
|
|
|
|
Thanks a lot
Later buggers harm more.
|
|
|
|
|
|
Does this your answer?
CString str;
m_edit.GetWindowText(str);
m_Combo.AddString(str);
|
|
|
|
|
im not getting in this code..
plz help me..
|
|
|
|
|
vikramkarthik wrote: plz help me..
what is the problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
ThatsAlok wrote: what is the problem
i think this[^] is the problem
|
|
|
|
|
toxcct wrote: think this[^] is the problem
he he he, i just want to know what problem he is facing by implementing same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
CString strText;
m_edtBox.GetWindowText(strText);
m_cmbString.Addstring(strText);
c im using VC++ 6.0, in this if i type this code means im not getting GeTWindowText option itself.what i can do..
vikram
|
|
|
|
|
vikramkarthik wrote: im using VC++ 6.0, in this if i type this code means im not getting GeTWindowText option itself.what i can do..
vikram
actually m_edtBox is of type CEditBox and m_cmbString is of CComboBox, you have to associate that with each control!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
|
humm.. create two control variable associated each with EditBox and Combo Box.
CString strText;
m_edtBox.GetWindowText(strText);
m_cmbString.Addstring(strText);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
i tried and i got the answer..
vikram
|
|
|
|
|
it's all right.. you can vote for that message [hiding my face under table]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
start by learing how to ask a question correctly on the forum, then ask it good.
|
|
|
|
|
|
Hi,
I want to show a dialog in a thread(modeless).
Because I want to update controls after showing in the same thread.
Please help me.
Thanks.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
dSolariuM wrote: I want to show a dialog in a thread(modeless).
Because I want to update controls after showing in the same thread
how are you managing the lifetime of the Modeless dialog box! or you stoping the Worker Thread till modelless dialog finishes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Does this thread for update controls?
|
|
|
|