Solved

Manipulating controls (textbox) from other applications.

Posted on 2006-11-26
4
250 Views
Last Modified: 2007-01-15
Pretty much as the title states.
My main objective is to change the font of the text in an external application's text box control, and change the color of select words. (Somewhat incorporating syntax-highlighting).
I'm having some difficulty accomplishing this, if anyone particularly can aid me that would be great.

SO far I've been using SendMessage() with WM_SETFONT with no luck, or maybe my method is incorrect. I've tried using CreateFontIndrect() with the LogFont Structure to receive the handle of my specified font, with no success.
As for changing the colors of select words, how would I go about doing that if the control doesn't support RTF.. or other methods?
 If anyone can enlighten me on these issues that would be awesome.


0
Comment
Question by:rambo24
4 Comments
 
LVL 1

Author Comment

by:rambo24
ID: 18015558
On a side note, I am conducting this project in VB 6.0, and the external application is a MDI MFC application written in VC++.
0
 
LVL 16

Accepted Solution

by:
AlexNek earned 350 total points
ID: 18020222
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now