|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|