|
hi all,
i need to show tool tip in my application.
i am having point with me CPoint.
all my calculation's are done.
i have all the data with me.
i am at end point onlt thing remained is to show it in tooltip.
so by having CPoint can i show that data as tooltip?
Thanks in advance
|
|
|
|
|
|
See
<br />
m_tooltip.Create(this);<br />
SetToolTip(_T("ADAD"));<br />
<br />
void CAnswerView::SetToolTip(LPTSTR ToolTip)
{
TOOLINFO ti;
ti.cbSize = sizeof(TOOLINFO);
ti.lpszText = ToolTip;
ti.hinst = AfxGetInstanceHandle();
ti.hwnd = m_Edit2.m_hWnd;
ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND;
ti.uId = (UINT) m_Edit2.m_hWnd;
m_tooltip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti);
}
|
|
|
|
|
hey all,
I want to create a combobox and create a member variable of type int. But when I try to include the member variable using the "classwizard" option, I get to create a variable of type "string" only and not "int".
How do I add a member variable of type int.?
Iam using VC++6.0.
Thanks in advance.
|
|
|
|
|
U can't create variable of type int. U must create of type CString.
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
if you have a variable CString but you need to values from integer you can use From CString::Format for convert to int.
|
|
|
|
|
Hi all,
I have made a simple client-server(tcp/ip) Progamme in VC++ for file transfer, And it is successfully transfering the file in my LAN.
My Question is Whether i can use this programmes in internet.
That is I have installed my server programme in web server whose name is "www.something.com" ,
I have started my client programme in my local machine connected to internet, in which I mentioned "www.something.com" as the server name ie "gethostbyname("www.something.com");"
will this work
will my server and client communicate
Please Help me
Thanks in Advance
George K Jolly
|
|
|
|
|
yes if the DNS u r using canregonise ur webServer
never say die
|
|
|
|
|
Hi!Everybody
Actually i m trying to make a project in VC++ to recover password of Ms Access files here i have some information about it like. But it is not sufficent to recover the password is ther any code or any information that helps me to complete the project.If anybody know somthing or have some information about it try to help me.
thankYou
Krrish
Krrish
|
|
|
|
|
hi all,
i am having a small dout regarding Ellipse/Circle.
while drawing cdc::Ellipse(x1,x2,y1,y2);
how can i get the Radius of the Circle.
please let me know
uday.
|
|
|
|
|
U should know the basics of Maths.
Jubin Almighty
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
Exactly how is that a helpful answer? Who are you to judge what a person should or should not know?
"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
|
|
|
|
|
hey man...C'mon...
you know x1,x2 and y1,y2. from this, can't you calculate radius? if you dont know, please reply. I shall help you
|
|
|
|
|
uday kiran janaswamy wrote: Radius of the Circle
Mathematically sqrt((x2-x1)^2+(y2-y1)^2) should give you the distance between the two points.Calculate the distance between two points and then divide by two to get the radius.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi all,
i have drawn a Circle using CDC::Ellipse(...) and once i have drawn the circle, I want to Move the Circle when the mouse lies in the Circle what i have drawn.
I want to get the Latest coordinates where i moved and then i want to draw that circle with the same size what i have drawn earlier.
here is the code.
if((insidepoint == true ) && (nFlags & MK_LBUTTON))
{
CRect rect;
GetClientRect(&rect);
ClientToScreen(&rect);
SetCapture();
nOldMode = dc.GetROP2();
dc.SetROP2(R2_NOT);
one.CreatePen(PS_DASHDOT,1,RGB(200,200,0));
old = dc.SelectObject(&one);
dc.SelectStockObject(NULL_BRUSH);
dc.Ellipse(OldPoint.x,OldPoint.y,DrawTo.x,DrawTo.y);
dc.Ellipse(point.x,point.y,DrawTo.x,DrawTo.y);
OldPoint = point;
dc.SetROP2(nOldMode);
dc.SelectObject(old);
}
//-----------------------------------------------------------
please help me out.
uday.
|
|
|
|
|
In PPC emulator in VS2005, I create a childview as a camera UI. I create a button on childview to call a dialog. I also create a button on dialog to call mail UI.
Now I wish when I close the mail UI, then the childview showed.
So I close the dialog(use EndDialog(this->m_nRetCode)) when I call the mail UI.
But I find that when I close the dialog, the childview show first and mail UI show later.
On the other way, when I close the mail UI, the use the WM_QueryNewPalette to close the dialog. The dialog will show,then the childview show later.
If I wish taht the childview show after close the mail UI without showing the dialog.
What method could solve the question??
Thanks a lot.
Any suggestion is useful!! Thanks!!
|
|
|
|
|
how should i place bitmap in combobox,please anybody help me.
kanth
|
|
|
|
|
Search CP for owner-drawn listbox/Combobox. you will get some nice article.
|
|
|
|
|
muravi wrote: place bitmap in combobox
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can derived CComboBox and use from WM_DRAWITEM
like this
void CMyCombo::DrawItem(LPDRAWITEMSTRUCT lpDrawItem)
{
CDC dc;
CString str;
dc.Attach(lpDrawItem->hDC);
CRect rect(lpDrawItem->rcItem);......
DrawIconEx(dc.GetSafeHdc(),rect.left,rect.top, hIcon,0, 0, 0, NULL, DI_NORMAL);
......
dc.Detach();
}
|
|
|
|
|
Hello,
I have many listeners (5),I want to run them all in the same time I find the AfxBeginThread function but i couldn't use it ;
somone can explain to me or give me a sample ?
|
|
|
|
|
See MSDN for the docmentation.
your thread function should be a global or static function.
see the sample from MSDN.
it's using CreateTHread to create the threads. anyway AfxBeginThread internally calls CreateThread function. So don't worry...
Check the sample[^]
|
|
|
|
|
See Here[^] maybe it is some helpful to you
|
|
|
|
|
I want to copy files from a server to my computer. How do I have to write the path to the server. Suppose the server IP is 192.168.1.1, the path on the server is C:\temp
Should the source path look like this - 192.168.1.1\c:\temp\test.txt
Thanks!
modified 9-Mar-17 17:14pm.
|
|
|
|
|
it depends upon the application protocol u r using to fetch the file
never say die
|
|
|
|