|
Hello
When we take a mouse on any program button or etc. the windows show us a tool tip.
How can i get that tooltip text in my program ? In short i want to capture a tooltip displayed by
windows when i take my mouse over there.
Any hooking required?
Thanx in advance.
Jay.
|
|
|
|
|
Sorry I normally don't try to second guess other developers but could you explain why you are trying to do this? The only reason I ask is there may be a different approach than what I am thinking that would better suit your needs.
I am a lean mean ground beef machine!!!
|
|
|
|
|
Actually i want to capture all information of an office outlook items.
When i take mouse on any item of office outlook my program should give all information available for that item.I have developed some part of it with IAccessible interface.But right now i am facing one problem with the new push button on the office outlook,it gives same information for New button for "Mail" "Calender" "Task" "Contacts" etc. I observe that the tootip is different each time for new button when Any of this selected from the left side of outlook.So i want to capture that tooltip so i can identify the new button is different.
For you information Office outlook is 2003 and I am using vc++ 6.0 to develop this program.
Thanx
Jay.
|
|
|
|
|
Hi,
Is it possible to change the height of titlebar of all Dialogs which are used only in my application using WM_NCCALCSIZE or DrawCaption() and if there is any better way..pls let me know....please suggest me any sample which does the same....
|
|
|
|
|
Hi,
i tried using
BEGIN_MESSAGE_MAP(CMyDlg, CDialog)
ON_WM_NCCALCSIZE()
END_MESSAGE_MAP()
void CMyDlg::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp)
{
CRect& rc = (CRect&)lpncsp->rgrc[0];
rc.top += 20; // Increase the height of tittle bar
CWnd::OnNcCalcSize(bCalcValidRects, lpncsp);
}
but the increased height of the title bar is not shown properly...and even the caption and the close button were not increased...(title bar was increased but not shown properly..)
|
|
|
|
|
kumar sanghvi wrote: rc.top += 20; // Increase the height of tittle bar
This looks as though it would shrink the height. Why not use the InflateRect() method?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
kumar sanghvi wrote: but the increased height of the title bar is not shown properly
This is because you are changing the bounding rectangle of the client area not the caption bar. The default window procedure will adjust this rectangle based on the height of the title bar, the height of the menu (if present) and any other non-client component managed by the window. You have however gotten one step close as you now have extra space reserved at the top of the window for your caption bar.
The next step is to handle the WM_NCPAINT message and draw your custom caption bar with the desired height.
I am a lean mean ground beef machine!!!
|
|
|
|
|
I need a "universal font",
1. which can display most of languages (charecters).
2. whose size can be changed smoothly (i.e. height can be 13, 14, 15 ... pixels).
font "MS Shell Dlg" looks good, but its size can not be changed smoothly.
Any suggestion?
Thanks
|
|
|
|
|
Arial Unicode MS[^]? Think that comes as standard with Windows.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Segoe UI[^] is being used as the system font in Vista and later. Give it a try.
MS Shell Dlg is not a real font, but a "logical" one. It maps to a real font based on a registry setting.
|
|
|
|
|
Hi all
In order to implement NTLM authentication we have implemented code which requires support of Wininet.dll which ships with IE . The problem is - the behavior of our HTTP connections faces problems due to different versions of wininet.dll . All of a sudden we find that our application is at the mercy of the build versions of wininet.dll .
is there any other way , other than being dependent on wininet.dll , to support NTLM authentication ?
redindian
|
|
|
|
|
dharani wrote: to implement NTLM authentication
Is this in a client application? If it is, you probably want to look for an SSPI library - I believe that's how (for example) Firefox and Chrome implement NTLM authenticaiton in their browsers.
I found the one I had vague memories of - neon[^] is an HTTP client library that includes SSPI (including NTLM) authentication.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I have made an application with MFC that has run for years with no problems. Suddenly it has started to crash when one module in the program is opened. On my own developer PC it works fine. But on my wife's PC it crashes. Both have Windows XP. It appers that users that have had older versions of the program and has recently upgraded to the latest version, experience no problems. But on PC's that get the program for the first time it tends to break.
The error report says it is a Windows problem, and that the error is in mfc42.dll. I first thought it was a LoadLibrary() function failure, but now i suspect CMSFlexGrid. This ActiveX control is only used in this particular module.
This is very frustrtaing. Has anybody had this similar problems with CMSFlexGrid? How should I proceed to find out what is breaking the program, CMSFlexGrid or anything else.
Best regards, Haakon S.
|
|
|
|
|
Can you try viewing the crashing dll in Dependency Walker?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I am not familiar with this tool, but I will try it. Thank you for your help.
Haakon.
|
|
|
|
|
|
Sorry, Randor. I had high hopes that this would be the reason . But it isn't . The error is exactly the same. Thank you for your help anyway. Have a good weekend!
Regards, Haakon.
|
|
|
|
|
Haakon S. wrote: The error is exactly the same.
Haakon,
May we see the error message?
Thanks,
-David Delaune
|
|
|
|
|
Sorry, Randor. On further investigation I see that it is the kill bit issue that is causing the problem. I also see it is a serious matter because it involves changing client machines, which I don't intend to initiate. I will remove the ActiveX control alltogether, and use another grid component.
Thank you for your help.
Regards, Haakon.
|
|
|
|
|
union U
{
int x;
int y;
}u;
u.x=0;
u.y=200;
cout<<u.x+u.y<<endl;< b="">
Why does this code print 144?
I don't understand, please help me!
Thanks you very much!
|
|
|
|
|
ideally it should print 400.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Anshuman is right - it should be 400...
But I notice a coincidence... 256+144 = 400. Are you on some weird architecture? I;ve never heard of 8bit ints, but...
If you'd put in BYTE, or char, I'd be sure of the answer.
Try:
cout << sizeof (U);
u.x = 100;
cout << u.x;
u.y = 127;
cout << u.x;
u.x = 257;
cout << u.x;
cout << (double) (u.x);
This should set some light on your problem.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
In string table im having resource ID as IDR_TEST and its string value as "test". Now i want to change the string value at runtime. I have tried with LoadString. But its not working. Anyone please tell me how to load string value at runtime?
|
|
|
|
|
You've got the basics wrong there. Entries in a string table are not meant to be modified, whatsoever.
If you need a string that needs to be modified, what's wrong with having a member variable?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i want to change the default title of SDI window.So, I want to change the Resource ID IDR_MAINFRAME in string table.
|
|
|
|