How to get the text from another window?

hi,all
 
For example, In MSDN help program, there are many items in the left list box 
when you type whatever key word. Can I get these itmes' text in anohter 
program? I did a test, put a CListBox in a dialog and then , in another 
program, get the handle of this list box and use list.Attach(handle) , then 
you can get all text by the list. But in msdn help program,  it is not a 
CListBox, how to do that? Is possible?

Thanks
0
Nicky (56)
8/14/2004 5:55:02 PM
vc.mfc 33608 articles. 0 followers. Follow

3 Replies
526 Views

Similar Articles

[PageSpeed] 5

    What exactly do you mean by the MSDN list box?  Are you talking about
the part of the Index where the topics are listed?


--
Alec S.
alec <@> synetech <.> cjb <.> net



"Nicky" <Nicky@discussions.microsoft.com> wrote in message
news:57FCEFAF-FB6D-48E9-B99C-491577F6F11C@microsoft.com...
> hi,all
>
> For example, In MSDN help program, there are many items in the left list
box
> when you type whatever key word. Can I get these itmes' text in anohter
> program? I did a test, put a CListBox in a dialog and then , in another
> program, get the handle of this list box and use list.Attach(handle) ,
then
> you can get all text by the list. But in msdn help program,  it is not a
> CListBox, how to do that? Is possible?
>
> Thanks


0
Alec
8/14/2004 10:34:05 PM
No sure what you mean by this question. It is reasonably safe to assume that it is
impossible to get the text of a control that belongs to another process. In the incredibly
rare cases where this works, e.g., static controls that are not subclassed, edit controls,
and listbox and combobox controls that are not owner-draw (or at least have
LBS/CBS_HASSTRINGS style). Since it is not a listbox, your chances of getting the content
apporach zero, and frankly, I wouldn't waste any time worrying about how to accomplish
this.
					joe

On Sat, 14 Aug 2004 10:55:02 -0700, "Nicky" <Nicky@discussions.microsoft.com> wrote:

>hi,all
> 
>For example, In MSDN help program, there are many items in the left list box 
>when you type whatever key word. Can I get these itmes' text in anohter 
>program? I did a test, put a CListBox in a dialog and then , in another 
>program, get the handle of this list box and use list.Attach(handle) , then 
>you can get all text by the list. But in msdn help program,  it is not a 
>CListBox, how to do that? Is possible?
>
>Thanks

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
0
newcomer (15975)
8/14/2004 11:44:13 PM
    So is it or not?  If it is, then the reason you cannot get it is because
the list is not a standard listbox, tree control, or list control.  It is a
control custom-made for the MSDN.  It is an HX_WINCLASS_VLIST which means
that you will need to know something about the control type before you can
use it.  I suppose you could reverse engineer it to fine some sort of item
extraction function but again it would depend on whether that is in fact
what you are talking about.


--
Alec S.
alec <@> synetech <.> cjb <.> net

> "Nicky" <Nicky@discussions.microsoft.com> wrote in message
> news:57FCEFAF-FB6D-48E9-B99C-491577F6F11C@microsoft.com...
> > hi,all
> >
> > For example, In MSDN help program, there are many items in the left list
> box
> > when you type whatever key word. Can I get these itmes' text in anohter
> > program? I did a test, put a CListBox in a dialog and then , in another
> > program, get the handle of this list box and use list.Attach(handle) ,
> then
> > you can get all text by the list. But in msdn help program,  it is not a
> > CListBox, how to do that? Is possible?
> >
> > Thanks
>
>


0
Alec
8/16/2004 10:52:10 PM
Reply:

Similar Artilces:

Routing another domain
I would like to add another domain to my exchange server so that it can act as an SMTP server for another domain. eg My AD is hee.com so my exchange routes @hee.com but i would like exchange to route @projects.com also. Thanks There is a tutorial on this here: http://www.msexchange.org/tutorials/MF010.html "scuba19" <scuba19@discussions.microsoft.com> wrote in message news:EE092E24-ED29-455E-A00F-3BDB7001A023@microsoft.com... >I would like to add another domain to my exchange server so that it >can > act as an SMTP server for another do...

Locate numbers that sum to another
Is there a tool, or function that will analyze a range of numbers and identify those numbers that add up to another number? For example: I have a list of numbers..... 2 4 6 8 I want excel to analyze this list to tell me what combination sums to 6. In this example, it would identify 2 and 4.....2+4=6. Thank you. See: http://www.mrexcel.com/pc09.shtml -- Gary's Student "simmerdown" wrote: > Is there a tool, or function that will analyze a range of numbers and > identify those numbers that add up to another number? > > For example: I have a list of num...

MSDE in windows 98
Hi Is there any issue in MSDE service with windows 98 OS. I have a program running on 98 using MSDE. The problem is MSDE service stopped automatically sometime. Any exception in my program will affect the MSDE service ?? - Jibesh ...

Tasks, calendar and e-mail on the same window #2
I'd like to find an add-on template to Outlook 2003 that combines the 3 components of: Calendar, e-mail and tasks in the same window. I tried the FranklinCovey PlanPlus for Outlook which includes e-mail, notes and calendar, but not tasks. This add-on is getting close to what I'd consider as a good compromise, but with the addition of the Tasks it will allow me to be more productive. Any suggestions where I can find one like that will be very appriciated. ...

Printing get error: "Unable print because paper setting out of ran
I get the subject error (traduction from italian, sorry), so I can't print anyway my calendar. Here's the error stamp http://www.allfreeportal.com/imghost/images/962474err.JPG I did: - Reinstalled office - Try changing all parameters available on paper size - Remove and reinstall printer... Nothing good :(( How I can restore original parameters of layout of calender? Regards and thanks Did try deleting the outlprnt file? paste the following line in the address bar of windows explorer: %USERPROFILE%\Application Data\Microsoft\Outlook and it will open to the fo...

How to get frame color of a edit box, list box, etc. on XP?
Is there an API that I could use to find the value of the 'blue-ish' color used by XP to draw a rectangle around edit box, list box, etc.? I'm looking for something like GetSysColor() (which I don't think will be of any help in this case, will it?). Thanks, Bob It is probably one of the ::GetSysColor options. joe On Mon, 27 Nov 2006 09:35:09 -0500, "bob" <bob@nospam.com> wrote: >Is there an API that I could use to find the value of the 'blue-ish' color >used by XP to draw a rectangle around edit box, list box, etc.? I'm looking...

Pointer will not select text or invoke hyperlinks in MS Office
My mouse will not select text or hyperlinks more than once in an application session in any Office programs. It will select text once (for example text in a word document, cells in an Excel book or a link in an outlook e-mail message), but if a second or subsequent attempt to select is made text is not selcted and highlighted or the link is not invoked. I first experienced this issue using MS Office 2007 having upgraded to Windows 7 - I now have the same problems with MS Office 2010 Beta and have found a solution to the problem with neither version of Office. This problem does no...

the best candidate gets its first choice
Hi, I know this may be a bit tough but here goes my problem anyway... I had an establishment problem that I am looking for an excel solution. Say we have 3 departments. DeptA, DeptB and DeptC in a school. To accept students for the first classes each have various capacities. Say DeptA can accept 24 students while DeptB can only accept 20 and DeptC 22. When applying to the school, the candidates present 2 criteria + an exam result to be used by the admin to classify them to the depts. - Past school average (a number, max 10): say variable SA - School entrance examination result (a score max 10...

Object Collection: Couldn't find item indicated by text (FRX)
Hi there, I have a problem using Account Category in my frx report. When I try to design my report using Great Plains Account category, I get the error "Object Collection: Couldn't fine item indicated by text." When trying to generate report. Then the report does not contain any category other than the first one. After some tests I discovered that, only the first line item in my row format that contains account category appear in my report (either if this line have one category or a range of categories) but no other rows have category appears in my report. In addition, I ...

Windows Mail
When I try to start Windows Mail on Vista I get the following message: Windows Mail could not be started. The application was unable to open the mail message store. Your windows mail mailbox data is currently being used by another program, such as a virus scanner. Close the program or wait for it to complete it's operation, then start windows mail again. (0x800C0155,2) No other program is running and I hvae Norton email checking disabled. The next error message is Windows Mail could not be started because MSOE.DLL could not be initialize. ...

change text and icon of a XP grouped taskbar button
Hi I need to change the text and icon of the taskbar button that XP collects simular buttons under, (after choosing "Group simular taskbar buttons" in the taskbar properties) Can anyone give me directions on where to start looking? thanks and regards Anders Sandberg ...

Windows XP Upgrade Can't Start Money 2001
I utilzie Money 2001 from Windows ME & I upgraded to Windows XP Professional. When I attempt to start Money, XP does not recognize the format. What can I do to retreive my valuable lost information? How can I continue to use Money on XP? I would greatly appreciate any advice...MT Have you reinstalled Money? What exactly are the error messages that you are getting? -- Regards Bob Peel, Microsoft MVP - Money Hints/Tips http://support.microsoft.com/default.aspx?scid=fh;EN-GB;mny UK Wishes/Suggestions mnyukwsh@microsoft.com "Mike Thomas" <mthomas84@sbcglob...

Sales Lot Number Entry Window
Hi, Any idea how to get the details of the particular line being removed in this window? I need to get the Lot Number, Expiry Date, Bin and Quantity of the selected lot number when user click Remove button so that I can code a trap using Remove_BeforeUserChanged event. TIA, Sugih Hi, Please ignore this post. I have managed to get the info from SalesLotNumberEntryDetail1 windows. It appears that details from the grid can be retrieve from there. Cheers, Sugih "Sugih" wrote: > Hi, > > Any idea how to get the details of the particular line being removed in this >...

How do I add circular text to an Auto Shape (circle)?
How do I add circular text inside a circle at the same (or near) arc as the circle in Publisher 2007? Have you tried WordArt? Look at this web page, scroll way down to the bottom. http://msauer.mvps.org/wordart_in_microsoft_publisher.htm If you are trying to put your text inside the circle so it contours to the circle, it is not an easy operation. Look here: Scroll down http://msauer.mvps.org/more_graphics.htm "dbpeart" wrote: > How do I add circular text inside a circle at the same (or near) arc as the > circle in Publisher 2007? ...

How to place CListCtrl text Center Aligned?
I use MFC Visual C++ 4.2. I use a CListCtrl to display data. I have 2 columns which display "OK" text. I need to place them Center aligned. How to do that? Thank you. Use LVCFMT_CENTER flag while inserting columns. It doesn't, however, work for the first (inserted with index 0) column which is always left-aligned. Possible workarounds: owner draw or inserting a dummy (hidden) column as the first one. Victor "Landon" wrote: > I use MFC Visual C++ 4.2. > > I use a CListCtrl to display data. > > I have 2 columns which display "OK"...

Change setting for start window in CRM sales for outlook
Hi, How do I do to change the settings for activities on my startpage in CRM sales for outlook. I would look to add another column with the person associated to the task beeing carried out. Mattias You cannot modify any views or forms for Activities and Notes. So you cannot change anything. There is a pretty good third party product from www.c360.com that allows you to display activities however you want them. Brett Meyer CRM Team Leader/Microsoft Certified instructor "Kyhlan" wrote: > Hi, > How do I do to change the settings for activities on my startpage in CRM >...

MS 2004 deluxe + WIndows XP pro = disaster!
I purchased MS 2004 deluxe and installed it under my Windows XP pro. Each time I tried to launch Money it says Money encounters some error and has to be shutdown. Judging from the error message it appears to be a memory access problem. I tried to get some online support but no luck. The program doesn't even let me get to the "help" page to read id number, which is required for the online support. Called free phone support but after long wait they transfered me to game tips ( I have to pay long distance charge). This is really a joke and I am very angry at myself to pay for...

Can't get navigation keys to work on Excel
Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel I used to be able to get the navigation keys (the ones with the arrows) to move from cell to cell on Excel. Since I installed Snow Leopard, that just won't happen. Any ideas? Make certain that you have all Office & OS X updates applied as well as any available firmware updates for whatever model of Mac you have. If you're using a 3rd party keyboard check the mfr's site for a driver update. Also, repair disk permissions & restart your Mac. There is no known conflict of that nature - ...

Spam addressed to one person, but going to another person..
Hello -- I have a person in my Exchange Organization that receives spam emails that are addressed to a different person in our exchange server. One of my users, named Laura, gets email that is addressed to Eric. Eric and Laura don't share alias's, nor are they in the same group. In fact, none of the spams that Laura gets in her inbox ever go to Eric's. Here's the header info from on such spam: Microsoft Mail Internet Headers Version 2.0 Received: from ock.com ([202.54.51.5]) by exch2k3.ocls.info with Microsoft SMTPSVC(6.0.3790.211); Thu, 10 Feb 2005 07:20:29 -050...

Updating a Text linked with a cross reference
Following is my requirement: I have following link to linked:- 1.XXXXX , 2. XXXXX …….on the 1st page and these are linked to the next pages with the same 1.XXXXX 2. XXXXX……. What I am trying to achieve here is if I change the content of 1st page, it should be changed in the next pages. Some kind of internal links. Example: If I change 1.XXXXX to 1.YYYYY on 1st page. The next page which has 1.XXXXX should also automatic be updated with the content of 1.YYYYY Is This Possible in Microsoft word The answer is Yes. But be aware that when you make a change, the change will ...

Slider with Text Box
Hey all, I need some help bad. can some one tell me how i can use a slide bar and having it update my text box automatically... my slide bar name is csSl01 and my text box is txtVal10. PLEASE HELP. Thanks -- -The Novice Learn Today, Teach Tomorrow Great Success is ones ability to ask for Help. Private Sub csSl01_Change() Me.txtVal10 = Me.csSl01 End Sub TheNovice wrote: >Hey all, > >I need some help bad. can some one tell me how i can use a slide bar and >having it update my text box automatically... > >my slide bar name is csSl01 and my text box is txtVal10. > ...

getting a percentage
hi guys need your help urgently i need to calculate the percentage of apples from all other fruits for example: i have 8702 fruits in column a and i have 2673 apples in column a how do i calculate the percentage? thanks in advanc -- Message posted from http://www.ExcelForum.com Fruit in A1 Apples in B1 Format C1 to percentage and enter this: =B1/A1 30.72% -- HTH, RD ============================================== Please keep all correspondence within the Group, so all may benefit! ============================================== "noelf >" <<noelf.14zmuh@excelforum...

How to get my html-newsletter smaller?
I would like to send out a newsletter including both text and images. I create the newsletter in Dreamweaver MX 2004, then I copy it into Outlook. I use absolute code (<img src="http://www.duell.nu/bilder/pix_svart.gif">) when I add an image, yet the size of the mail is approximately 100 kB which is too big. What can I do to minimize the size of the mail without taking out the images? Frida <Frida@discussions.microsoft.com> wrote: > I would like to send out a newsletter including both text and images. > I create the newsletter in Dreamweaver MX 2004, then I c...

I get an error when sending sheet via email
I am running office 2000. I recently updated Outlook to Outlook2003. Now, none of the other applications can email. When I click the icon I get an error that the email application can not be found. I was able to send an excel sheet as an attachment, but I need to be able to send as the message body. Any help would be great. Thanks Marty Hi Marty See number 3 http://www.rondebruin.nl/mail/problems.htm A workaround is to use my Add-in (Outlook version) http://www.rondebruin.nl/mail/add-in.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Marty" <Martyr@peerohio.com...

text gets cut in cells #2
when trying enter text in a cell (say the size of a letter for example) the text gets cut; only the cut version is printable, although the formula bar displays the whole text. How can I get all the text displayed in the cell (AND printed)? .. Hi, If I'm understanding you correctly, you need only widen the cell (column) and/or set the text to wrap if necessary. First, you can set your cursor over the column heading (A,B,C) just on the line separating the columns and drag to the right. OR you can position your cursor there and double-click, which will set the column to the best (...