|
ID of the edit control is IDC_EDITCAMPAIGNID
Plz can you show the code fot it.
|
|
|
|
|
tejaswini.g wrote: Re: How to get the data from edit control
char *str=new char[10];
GetDlgItemText (IDC_EDITCAMPAIGNID,str,10);
AfxMessageBox (str);
delete[] str;
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
if you have a variable of CEdit you can use from it m_Edit.GetWindowText(...); if you have ID of control you can use GetDlgItemText for text and GetDlgItemInt for number
|
|
|
|
|
_AnShUmAn_ wrote: char *str=new char[10];
Why suggest this when CString is preferable? Allocating memory is expensive. Unnecessarily interacting with the memory manager is just asking for trouble.
Had you used a CEdit member variable, one line of code would be all that's necessary.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
tejaswini.g wrote: Combo->AddString("Radhika");
Combo->AddString("Lakshmi");
But when i executed the program I am getting only "Lakshmi" in the dropdown list.How can I get "Radhika" also in the drop down list.
Are you sure, its not getting added?.I dont see any problem with code.
|
|
|
|
|
Sorry , In the properties I have selected NO integral height now and now I am getting the result.
Thank you.
|
|
|
|
|
hi all,
I have a requirement of adding a hyperlink (basically a URL say "www.google.com")
to my dialog box. could anyone guide me as to how i can do that?
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: I have a requirement of adding a hyperlink (basically a URL say "www.google.com")
to my dialog box. could anyone guide me as to how i can do that?
Search CP with the keyword Hyperlink control, you are sure to get plenty.
|
|
|
|
|
|
|
|
|
Hi,
I am having a property page ( Dialog resource) and it contains a Cstatic Instance. I need to load a bitmap on it dynamically and can anybody help me which of Override or Message should I handle to do it..
* The bitmap is in the Resource form IDB_ANYBMP
* After Loading the Bitmap into the CBitmap Instance and calling the CStatic::SetBitmap Function.
The above Algo is working once the dialog is displayed. But I need to display the bitmap before the dialog get displayed.
Thanks in Advance
|
|
|
|
|
I think you could try overloading OnInitInstance() and doing the processing there. The code in OnInitInstance() gets called before the dialog is displayed (I think).
this is this.
|
|
|
|
|
Hi Thanks for the Reply.
I used Initinstance and also tried with OnSetActive (WizardPage). But it is not working.
|
|
|
|
|
Rather than the CWinApp::OnInitInstance(), put it in your CDialog::OnInitDialog() handler and it should work for you.
|
|
|
|
|
Sivaraman Dhamodaran wrote: ...it contains a Cstatic Instance. I need to load a bitmap on it dynamically...
See here.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi is it possible to rubber-band a rectangle with an image opened on the background? it works fine on a blank view(with no images opened) using the the SetROP2 function and set it to R2_NOTXOROPEN.
but when an image is opened on the client it doesnt paint the rubber banding rectangles..
please help..is there any way or articles related?
thanks
positive vibes
|
|
|
|
|
Hi, all:
I'm developing a feature for our software which can block a list of websites. For internet explorer, I chose the BHO technology. I've written a little BHO.dll which is loaded when internet explorer is launched. When user types a website address in the address bar and hit enter, I check the address to find out whether it is in the block list. If in the list, the internet explorer will be directed to a simple page containing "this website is blocked."
It works and I get desired feature.
But, to my surprise, it seems there's some conflict between internet explorer and the BHO.dll. Internet explorer ofter crashes after being launched. If I unregister the BHO.dll, internet explorer becomes OK.
Are there anyone who meets this kind of problem before? How to resolve it?
And, I notice that IWebBrowser2 can also implement my feature. Then, to my feature, which one is better?
I have to think about firefox and other IE-cored web browser. Where can I find some help to implement my feature?
Thank you very much!
daheitou
|
|
|
|
|
About the crashing effect, you could start the program in debug mode. Set the "Executable for debug sessions " to iexplore.exe (You have to give the full path to iexplore.exe). Then start the program in debug mode and set breakpoints in your BHO dll code. That way, you can debug your BHO.
About the firefox etc, sorry don't have any idea. I hope someone else can help.
this is this.
|
|
|
|
|
Thank you very much.
I know how to debug BHO.dll, what I have no idea is whether IWebBrowser2 is better than BHO.dll to implement website blocking feature.
Does any one have ideas?
^_^
|
|
|
|
|
The way I remember it, your BHO would implement some interface like IWebBrowser2 , and through that, implement a function like Navigate or Navigate2 etc, and block the url in that function.
this is this.
|
|
|
|
|
Hi all,
I have automated MSWord in my VC Programme.Now I am able to Open a word document. Can I perform Searching of a string programatically using MSWord functionalities .
Please Help me,
Thanks in Advance,
George K Jolly.
|
|
|
|
|
Can you be more specific.
|
|
|
|