|
Hi all,
I'm having words(collection of text) with co-ordinate position of each word. I need to add those words with relevant position into the rich edit box. If it is possible, please let me know...
Thanks in advance
|
|
|
|
|
Do you want to copy some text of a richedit to other richedit?
|
|
|
|
|
Problem is I have icon which I created by
1) Creating Insert new icon
2) Before drawing I clicked zip like button (New Device Image)
3) It creates dialog where I can have custom icon of 60 * 50;
Now I want to show on my giant toolbar this big icons
which are very much required. Can Anyone tell me how to achieve it.
CImageList m_ILtb;
m_ILtb.Create(60,50,ILC_MASK|ILC_COLOR16,14,14);
HICON m_ico;
m_ico=AfxGetApp()->LoadIcon(IDI_ICON1);
// SetIcon(m_ico, TRUE);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON2);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON3);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON4);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON5);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON6);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON7);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON8);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON9);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON10);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON11);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON12);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON13);
m_ILtb.Add(m_ico);
m_ico=AfxGetApp()->LoadIcon(IDI_ICON14);
m_ILtb.Add(m_ico);
CToolBarCtrl& ctb = m_wndToolBar.GetToolBarCtrl();
ctb.SetImageList(&m_ILtb);
|| ART OF LIVING ||
|
|
|
|
|
What if you call SetSizes()...
m_wndToolBar.SetSizes(CSize(67,56), CSize(60,50));
CToolBarCtrl& ctb = m_wndToolBar.GetToolBarCtrl();
ctb.SetImageList(&m_ILtb);
Mark Salsbery
Microsoft MVP - Visual C++
"Great job team! Head back to base for debriefing and cocktails."
|
|
|
|
|
Actually I did one simple trick, I reaplaced entire Bitmap
by ctb.LoadBitmap(); On Every button click event function I am changing bitmap ,but this is going to affect when I will try to
disable a particular button.
-- modified at 4:25 Tuesday 17th July, 2007
I tried SetSizes also but it also does not work.
|| ART OF LIVING ||
|
|
|
|
|
|
Im not sure do you need to ShellExecute ?
|
|
|
|
|
thanks sir
i want to run my application with database on website
hi
|
|
|
|
|
paras_s12 wrote: i want to run my application with database on website
thats little typical task. you required knowledge of COM to achieve same. i.e. ASP page calling your COM server exe or Dll to reterieve data and showing on the page!
"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
|
|
|
|
|
Hello
What do you think ShellExecute() will do ?
Will it appear like a ASP page in browser ?
Please whitesky know your limits ....Do not misguide people
redindian
|
|
|
|
|
what if the OP was asking his question clearly ?
|
|
|
|
|
toxcct wrote: what if the OP was asking his question clearly ?
so great TOX is now back.. he he he
"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
|
|
|
|
|
dharani wrote: Please whitesky know your limits ....Do not misguide people
please stop perosnal flaming on board!
"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
|
|
|
|
|
If you saw my reply I said Im not sure did you see it? and its better if you know any things you answer to people.
|
|
|
|
|
Hi,
I am working in MFC VC++. I like to create report in ms-word. This report contains text and images. I can able to connect Ms_word to VC++ MFC application and can write text in that. But I want to know how can i insert image in ms-word using MFC. If you help me, it will be great.
Actually i refered this site to embed ms-word to VC++
http://support.microsoft.com/kb/q238611/
Can anybody tell me how can I insert image in ms-word using VC++ MFC
|
|
|
|
|
Hello everyone..
i tried with TRACE command other than that give me some ideas..
vikram
|
|
|
|
|
CComboBox m_cmbBox1;<br />
CString str;
m_cmbBox1.AddString(str);
|
|
|
|
|
thank u so much..
i tried with this also.
and another question if i type a string in edit box . it should b placed in that combo box..
|
|
|
|
|
You can use of InsertString(1,"String") or AddString("String") .
|
|
|
|
|
vikramkarthik wrote: i tried with TRACE command...
Why in the world would you think that TRACE() would be used for updating a combobox?
Since you are using MFC, use ClassWizard (Ctrl+W) to assign a CComboBox member variable to the control. When you are ready to update the control, use CComboBox::AddString() or CComboBox::InsertString() .
"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
|
|
|
|
|
Hi
I have a dialog with different controls on it like edit box, combo box, button ,slider control.
I want to display a message on kill focus of the dialog, i mean, when the focus is not with any of the controls in the dialog.
Can anyone help me.
Thanks in advance.
|
|
|
|
|
Does WM_KILLFOCUS any help?
|
|
|
|
|
Thanks a lot for your reply.
Actually, i have tried to handle the message "WM_KILLFOCUS" in the dialog, but it is nor working.
Can that message be handled in a dialog?
|
|
|
|
|
As long as the dialog is displayed, one of the child controls will always have the focus.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
yes.
i got it. i have handled the kill focus of each of the controls on the dialog.
Thanks a lot for your concern.
|
|
|
|