|
Hi,
Hi am using CListCtrl to display the Device type of the PCB components alone. But if i place a cursor on an item in CListCtrl i have to display a tool tip containing some information about that particular item.. Suggestions please..
Thanks in advance,
With Regards,
Sangeetha.
|
|
|
|
|
Pleas refer here[^].
Regards,
Paresh.
|
|
|
|
|
Hi,
I referred and tried it. it works. but i want to display the tool tip with multi lines.
With Regards,
Sangeetha.
|
|
|
|
|
Hi all,
Have you try calling a vc++ dll function from javascipts? I've tried using MFC dll project type but it doesn't work properly. My javascipts always gives an error of " automation can't create object". Is there anything i need to add in my dll code?
|
|
|
|
|
You need automation support for your application. Please refer here[^] for more information.
Regards,
Paresh.
|
|
|
|
|
Hi, is it possible to check other applications that are running, for selected text, and how to get it?
For example when I select some text from MS Word, notepad, internet browser... and then get my app to handle that portion of text for e.g. displaying it in dialog?
If anybody know how this is possible point the way.
Thanks you guys!
|
|
|
|
|
You can ask word for the selected text via COM.
You can send any windows for which you know the handle any Message.
e.g. WM_GETTEXT to a EditControl.
By the way one of Windows most gaping security hole.
You can not get another program to call yours when some event happens.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
I would hot keyed my app when I select some text by myself.
On Select and HotKey-ing, my app would have to query that program (with selected text) for selection ?!
How this can be done?
How to get program's wnd handle?
Thanks for yours interest!
|
|
|
|
|
Can you use the clipboard?
Other application: Copy text to clipboard.
Hotkey to your application.
Your application: Insert text from clipboard.
With Word and Excel (Open-Office too?) you can use automation to query the selected text.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Hi again,
I have clipboard sorted out, my prime is dealing with selected text!
Thanks, I think I'll turn to Windows Accessibility.
|
|
|
|
|
Actually selecting text is simply a case of drawing it differently, and every application is likely to handle this differently. Heck, they may be including paragraphs, diagrams, all sorts.
But what you CAN do is to monitor the clipboard for copied / cut test. Do a search (here on CP) for clipboard monitor .
If you're just interested in word, then I imagine it does have some mechanism you can use for that.
On a final thought, well behaved applications may work witb the Accessibility API to help blind people know what they've selected, but that will only be with mainstream apps, not *every* one.
Iain.
|
|
|
|
|
Thanks,
I already have Clipboard functionality, I'm interest in what I can do with selected text, that is can I get it from various sources. I also noticed the Windows Accessibility, but before getting inside with it I decided to ask few questions.
Thanks for trying to help me!
|
|
|
|
|
Hello Everyone,
I am using a Dialog Application, in which i am using two sliding dialogs for customizing the main dialog.
I want to change the cursor for each sliding dialog. Should be Bitmap.
Tell me if any one knows it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Did you use of CreateCursor for create it and SetCursor for set it?
|
|
|
|
|
I used CreateCursor and SetCursor. It is working in main dialog. But, it is not working in the sliding dailogs. There are two sliding dialogs. I am want to use company logo as a cursor.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
santhoshv84 wrote: But, it is not working in the sliding dailogs.
Are those dialogs responding to the WM_SETCURSOR message?
"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
|
|
|
|
|
It sounds like you need to handle WM_SETCURSOR in your sliding dialogs. But this would only handle the cursor on the dialog itself, not on any buttons, static controls etc. To handle all those cases would be possible by using subclassed controls also, but it sounds like rather a lot of work...
You also have the separate problem of turning an arbitary bitmap into a cursor!
Iain.
|
|
|
|
|
Are the sliding dialogs coordinates fixed?
You can get the dimensions and position of the dialogs. Then get the position of the mouse according to the main frame or the desktop and, if you are inside of the region ocuped by your dialog when is visible... then change the cursor to the one you want.
I made it in my project when being over one bitmap (that represents an element that can be configured in advanced window), and changing cursor depending on the element.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
MY application do the word automation. My problem is while i quit the word through my application it will close all the word document , which i not open through my application. Pls help me to close the word document which i open through my application .
Thanks in advance
|
|
|
|
|
|
i open it by
pDisp is
hResult = CLSIDFromProgID(L"Word.Application", &cLswid);
CoCreateInstance(cLswid, NULL, CLSCTX_LOCAL_SERVER, IID_IDispatch,(void **)&pDisp);
pDisp->GetIDsOfNames(IID_NULL, L"Open", 1, LOCALE_USER_DEFAULT,&dispID)
pDisp->Invoke(dispID, IID_NULL, LOCALE_SYSTEM_DEFAULT, autoType, &dp, pvResult, NULL, NULL)
|
|
|
|
|
Use the Close method of the Document object, instead of the Quit method of the Application object.
|
|
|
|
|
Hai experts,
I need to get RTF format of a text...how to gat this...any api or how...using VC++?
Pls help me.....
|
|
|
|
|
I would try this.
a) Create an invisible CRichEditCtrl (or use a visible one).
b) Set the text with SetWindowText (or type or paste it into your control).
c) To get the Text in RTFFormat use StreamOut Method.
There is a small sample in MSDN for this.
If you are not using MFC:
a) Create a Window of richedit class. (CreateWindow(...)
b) use WM_SETTEXT
c) send EM_STREAMOUT - Message to the created window
|
|
|
|
|
It depends what you are trying to do.
RTF is all readable text - create a "Hello world" document using word pad and save it as RTF, then open it using Notepad. That's a minimal RTF document.
If you want to make your own RTF documents from a program, use the contents of that Wordpad-generated file as a basis, just replace the "Hello world" with whatever you need to output from your program.
As I said, it depends what you are trying to do in the RTF document.
|
|
|
|