• Welcome to Valhalla Legends Archive.
 

War2 BN's Chat Window

Started by UserLoser., December 03, 2003, 08:36 PM

Previous topic - Next topic

UserLoser.

How would I go about adding text and settings colors to Warcraft II's Chat window (Where you see talks, emotes, whispers, ect)?  Using Spy++, I've been able to find the names of each class and window name under the SDlgDialog class and play around with some windows settings fonts, changing captions, and more. But, I don't see any sort of window that is a RichEdit in Spy++. How are Blizzard products chat windows done, and how would I go about adding text to them?

Kp

The main chat interface is a listbox which is owner-drawn, uses low unprintables to control color, and prohibits having its elements selected.  The low unprintables is why SC's UTF8 bug permits color -- you send something that decodes into a low unprintable and the result is color.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Mesiah / haiseM

#2
im not positive about warcraft, but starcraft has 2 listbox's, one for the main display, and one for the users in the channel. They both have the same class name and etc, so make sure your code utilizes the right one.
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Skywing

Because that user interface is managed by Battle.snp, it works (mostly) the same between Starcraft, Diablo, and Warcraft II (excepting minor differences such as the Warcraft II version of battle.snp being much older than the Starcraft version).

MyndFyre

Quote from: MesiaH on December 12, 2003, 02:14 AM
im not positive about warcraft, but starcraft has 2 listbox's, one for the main display, and one for the users in the channel. They both have the same class name and etc, so make sure your code utilizes the right one.

The main chat window is a listbox?  O_O
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Skywing

Quote from: Myndfyre on January 28, 2004, 05:45 PM
Quote from: MesiaH on December 12, 2003, 02:14 AM
im not positive about warcraft, but starcraft has 2 listbox's, one for the main display, and one for the users in the channel. They both have the same class name and etc, so make sure your code utilizes the right one.

The main chat window is a listbox?  O_O
Yes; you can check these things out yourself with Spy++, which is included with Visual C++.