PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > How to create two-column list box in Visual C++ without MFC?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to create two-column list box in Visual C++ without MFC?

Réponse
 
LinkBack Outils de la discussion
Vieux 08/12/2007, 15h47   #1
Scott H
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to create two-column list box in Visual C++ without MFC?

I'm writing a chess game reviewer for Yahoo! players. This will be my
first Visual C++ application. Right now the list box containing the
moves in a history file looks like this:

___________
|Start
|1. W e2-e4
|2. B e7-e5
|3. W g1-f3
|4. B b8-c6
|.
|.
|.

I want to change it to this
_____________
|_|White Black
|0. ... ...
|1.e2-e4 e7-e5
|2.g1-f3 b8-c6
|.
|.
|.

and allow the user to select only a single move at a time.

I've looked through the LB_ messages and LBS_ styles and have found no
successful combination. I've also received a few suggestions from
CodeGuru about ListView, multiple ListBoxes, and list control:

"Use a listview control instead or even simpler, two listbox controls:
one for 'White' and one for 'Black.'"

"List view control is created using Windows registered class called
SysListView32 and defined using WC_LISTVIEW macro."

However, WC_LISTVIEW isn't included in my file, I haven't found a
web tutorial that includes the function SysListView32, and it isn't
obvious how to join two listboxes in a way that the user can only
select one entry.

I'm thinking about joining three ListBoxes, but if I did, I would want
a single scroll bar that would scroll each.
  Réponse avec citation
Vieux 08/12/2007, 16h39   #2
Victor Bazarov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to create two-column list box in Visual C++ without MFC?

Scott H wrote:
> I'm writing a chess game reviewer for Yahoo! players. This will be my
> first Visual C++ application. Right now the list box [..]
>
> I've looked through the LB_ messages and LBS_ styles [..]
>
> However, [..] it isn't
> obvious how to join two listboxes in a way that the user can only
> select one entry. [..]


That is not a C++ language problem. Please post to the newsgroup that
deals with Windows API. I know of 'comp.os.ms-windows.programmer.*'
hierarchy. There are also several newsgroups that have 'mfc' in their
names.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h20.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18077 seconds with 10 queries