Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Sorc.Polgara on October 05, 2005, 10:58 PM

Title: [C++ WIN32 API] What kind of control to use?
Post by: Sorc.Polgara on October 05, 2005, 10:58 PM
Ok, so I'm newb at doing GUI stuff in C++... I need some advice on what kind of control to use for like displaying what is said in the chat.

Once I know what kind of control is best for this, I can do some research on it and figure out how to use it.  I'm not using MFC, I'm using the straight up Win32 API.
Title: Re: [C++ WIN32 API] What kind of control to use?
Post by: Forged on October 05, 2005, 11:09 PM

#include <stdio.h>

printf(incomingstring)
Title: Re: [C++ WIN32 API] What kind of control to use?
Post by: l2k-Shadow on October 05, 2005, 11:56 PM
printf is nice and the include file uses less space but for more options use cout.


#include <iostream>

cout << data;
Title: Re: [C++ WIN32 API] What kind of control to use?
Post by: UserLoser. on October 06, 2005, 12:02 AM
He said GUI, as in, Graphical User Interface.  Not a console application.  To answer your question, a RichEdit box would be the best for you if you want colors and neat formatting.
Title: Re: [C++ WIN32 API] What kind of control to use?
Post by: Kp on October 07, 2005, 06:18 PM
Although if he wants it to look really slick and overcome some of the annoying limitations of richedit, he could use GTK+ (http://www.gtk.org/).  It's runs on MS-Windows, but it's not standard there.