Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Manipulating controls (textbox) from other applications.

Posted on 2006-11-26
4
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1400 total points
ID: 18020222
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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…
Progress

610 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