|
I want to draw an item ( a particular one) in Mousemove of an owner drawn list box. How do i the dc and for that item ( bounds).
- thanks
Vicky
|
|
|
|
|
|
I am not using windows forms. I am using MFC thanks
Vicky
|
|
|
|
|
I have Dialog public from CColorDialog. I added three edit box to get Dec value and change to Hex value ( R - G - B ) to R-Hex, G-Hex, B-Hex.
get and convert it OK.
But i can make my edit box same edit box of CColorDialog
Help me to make my edit has style same edit box of ColorDialog
My Code to make Edit box
BOOL CHpbColorDialog::OnInitDialog()
{
CEdit _editRed;
_editRed.Create(WS_BORDER | ES_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP ,rectTemp , this, 1000);
_editRed.SetFont(GetFont());
_editRed.SetLimitText(2);
............
}
Thank for reading.
Huynhnb
.: Your success is also me :.
|
|
|
|
|
|
huynhnb wrote: CEdit _editRed;
This object will cease to exist once OnInitDialog() is done. Make it a member of CHpbColorDialog .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i had make _editRed is member of class but style is same before.
I used this code to get style but run not good.
DWORD dStyle;
//Get Red Decimal
CWnd* pRed = GetDlgItem(706); // window of RED edit on CColorDialog
//Get style of pRed
dStlyle = pRed->GetStyle();
_editRed->ModifyStyle(0, dStlyle , 0);
but _editRed style not same pRed;
You have any comment?
Huynhnb
.: Your success is also me :.
|
|
|
|
|
Some styles cannot be changed at runtime.
huynhnb wrote: _editRed->ModifyStyle(0, dStlyle , 0);
What's the return value?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
its someone there that have an ideea with my list control ?
Hy all !
Again i have a serious problem with my list control !
This code works , but now i want to do something new and I don t have any ideea how to do it !
If is someoane to help me with my code !
void CMyList::OnOK()
{
UpdateData();
m_list.RedrawItems(0,m_list2.GetItemCount());
CString sRelatia2;
sRelatia = _T("NAME");
m_relatia.GetWindowText(sRelatia);
LVFINDINFO stInfo1 = {0};
stInfo.flags = LVFI_PARTIAL;
stInfo.psz = sRelatia;
int nItem = m_list2.FindItem( &stInfo );
if( nItem != -1 )
{
sSecondColumnText = m_list2.GetItemText( nItem, 1 );
// set the text to the second edit box
m_explicatia.SetWindowText(sSecondColumnText);
}
}
This code find me the item in the second column !
Now i have 2 edit boxes to search in the list control !
And all i want is to find them in list control but :
My list control:
------------------------------------------------
| NAME | City | Country |
________________________________________________
|George |London | England |
|George |NewYork | USA |
------------------------------------------------
I have 3 edit boxes
1) m_name
2)m_City
3)m_rezult
all 3 are CEdit;
first i want to find if in the m_name matches with "NAME" next m_name with "City" and if is find it the "name" and the "City" from both 2 edit boxes i need the country in the m_rezult !
i want to search this :
George (m_name) -> London (m_City) and if exist on the same line :
m_rezult ---> England !!!!!!!!!!!!!!!
and :
George (m_name) -> NewYork (m_City) and if exist on the same line :
i need the rezult :
m_rezult ---> USA !!!!!!!!!!!!!!!
Bravoone
|
|
|
|
|
|
the link is not good !!!!!!! is not working !!!!!!
Any ideea !!!!!!!!!!!!!!!!????????
?
Bravoone
|
|
|
|
|
Strange, cause the link works on my PC.....
Try typing it into the address box....
Regards
Programm3r
|
|
|
|
|
Flaviu_2006 wrote: the link is not good !!!!!!! is not working !!!!!!
Do you mean the link does not go anywhere? You get a 404 page? If you mean the information at the end of the link is not good then tell us what is wrong with it.
|
|
|
|
|
Flaviu_2006 wrote: I NEEEED HEEELLLPPP !!!!!!!!!
Another useless subject line. Everyone starting threads in this forum needs help of some sort or another.
|
|
|
|
|
You asked this same question a mere 38 minutes ago.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
Can anyone please help me out.
I want to print a word document using VC++ 6.0. The Application is a non - MFC application. I tried using ShellExecute , but that gives me a popup while printing which i want to avoid. is there any other method ?
Thanks.
|
|
|
|
|
Hi Suren.
U First Automate MSWord in VC++ . Then U can open it and print. That is U can perfom any operation programmatically in MSWord
Refer this
http://support.microsoft.com/kb/178749/E-US/
|
|
|
|
|
its someone there ?
i need some help!
Bravoone
|
|
|
|
|
What is your problem.
Nobody here is able to help if you don't specify your problem.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hy all !
Again i have a serious problem with my list control !
This code works , but now i want to do something new and I don t have any ideea how to do it !
If is someoane to help me with my code !
void CMyList::OnOK()
{
UpdateData();
m_list2.RedrawItems(0,m_list2.GetItemCount());
CString sName;
sName = _T("NAME");
m_name.GetWindowText(sName);
LVFINDINFO stInfo1 = {0};
stInfo.flags = LVFI_PARTIAL;
stInfo.psz = sName;
int nItem = m_list2.FindItem( &stInfo );
if( nItem != -1 )
{
sSecondColumnText = m_list2.GetItemText( nItem, 1 );
// set the text to the second edit box
m_explicatia.SetWindowText(sSecondColumnText);
}
}
This code find me the item in the second column !
Now i have 2 edit boxes to search in the list control !
And all i want is to find them in list control but :
My list control:
------------------------------------------------
| NAME | City | Country |
________________________________________________
|George |London | England |
|George |NewYork | USA |
------------------------------------------------
I have 3 edit boxes
1) m_name
2)m_City
3)m_rezult
all 3 are CEdit;
first i want to find if in the m_name matches with "NAME" next m_name with "City" and if is find it the "name" and the "City" from both 2 edit boxes i need the country in the m_rezult !
i want to search this :
George (m_name) -> London (m_City) and if exist on the same line :
m_rezult ---> England !!!!!!!!!!!!!!!
and :
George (m_name) -> NewYork (m_City) and if exist on the same line :
i need the rezult :
m_rezult ---> USA !!!!!!!!!!!!!!!
-- modified at 4:25 Monday 7th August, 2006
Bravoone
|
|
|
|
|
Flaviu_2006 wrote: hy all !
Your subject line is useless - It should describe in brief your problem. e.g. "Difficulty with the forum"
Flaviu_2006 wrote: its someone there ?
Yes, there are many people here. You don't need to ask that question. It is a pointless question.
Flaviu_2006 wrote: i need some help!
That is what this forum is for. Please don't waste posts like this. Write down your problem.
|
|
|
|
|
Flaviu_2006 wrote: i need some help!
Yes, you surely do. Patience would be a good starting point! Do you think this forum owes you something? Did you pay your membership dues, or are you still on the "free" plan?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How to add blockquote while replying?
Thanks in advance,
Sarvan AL
|
|
|
|
|
Sarvan AL wrote: Subject: Re:
Just select the text and click on Quote Selected Text button provided just above the "message type" text in the answering window.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: Just select the text and click on Quote Selected Text button provided just above the "message type" text in the answering window.
Thanks a lot Anshuman.
I was looking at the bottom.
Sarvan AL
|
|
|
|