473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 help 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.
Dec 8 '07 #1
1 3252
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
Dec 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim G | last post by:
I have two tables: TestA and TestB. Both tables have 3 fields: ID, Name, and RunDate. I need to create a query which will join the two tables first on Name but then I need to match up the...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
0
by: =?Utf-8?B?SmltIEFrc2Vs?= | last post by:
I am attempting to create a Windows Application in C#.NET that will allow me create two instances of Microsoft Project Objects (Project1.mpp and Project2.mpp) . I need to create the objects,...
0
by: BUZYbuz | last post by:
I have a .csv file with 5 fields. the fifth field have data that looks like 0002121925 where the first two digits stands '00' stands for ' Year which is 2007', next two digits '02' for month which...
1
by: reap76 | last post by:
I am trying to create a table that has two columns. If possible I'd like to do that usign two seperate INSERT statements. I am a complete rookie at sql and am learning as I go along. So, please...
3
by: ScorpAL | last post by:
Hi, I have some problem... I have two tables phpbb_posts and phpbb_posts_new with same fields and structure: CREATE TABLE `phpbb_posts` ( `post_id` mediumint(8) unsigned NOT NULL...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
2
by: Sudantha | last post by:
Hi, I need to get some selected columns of two tables in TWO DATABASES , AND get those data to an excel file. Think the best way is to create a DTS. But dont know how to create it for this situation...
6
by: Advait Mohan Raut | last post by:
Hello friends, I want to create two assemblies in single project -or- one executable and one assembly in single project. So that I can isolate testing information from actual code. I am using VC#...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.