Avatar of lcrogers
lcrogers

asked on 

Make three colums in the listbox and populate them.

How do I create a list box with three columns ant populate all three colums at once???  I am using MS c++ .Net 2003
I tried creating a Clistbox and using a Cstring format to populate it but the text in each column is not alined right.
I used:
           CString txt;
           int value1, value2;

           txt.Format(%9s    %6ds    %7d ", txt1, value1,value2);
           clist.AddString(txt);

Sample output:

         J23.1            234         123
       J12.0               129          349
          J4                23          90

Visual C++.NET

Avatar of undefined
Last Comment
AlexFM
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual C++.NET
Visual C++.NET

Microsoft Visual C++ (often abbreviated as MSVC or VC++) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages. It features tools for developing and debugging C++ code, especially code written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework. Many applications require redistributable Visual C++ packages to function correctly and are often installed independently of applications, allowing multiple applications to make use of the package while only having to install it once

7K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo