Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: gethostbyaddress AND 11004 Pin
Brian Tietz2-Jan-03 11:37
Brian Tietz2-Jan-03 11:37 
GeneralRe: gethostbyaddress AND 11004 Pin
(Steven Hicks)n+12-Jan-03 11:57
(Steven Hicks)n+12-Jan-03 11:57 
GeneralRe: gethostbyaddress AND 11004 Pin
(Steven Hicks)n+12-Jan-03 11:57
(Steven Hicks)n+12-Jan-03 11:57 
GeneralOff the top of your head... Pin
Martin Marvinski2-Jan-03 10:15
Martin Marvinski2-Jan-03 10:15 
GeneralRe: Off the top of your head... Pin
Joaquín M López Muñoz2-Jan-03 11:47
Joaquín M López Muñoz2-Jan-03 11:47 
GeneralMouse Position Pin
progman2-Jan-03 9:58
progman2-Jan-03 9:58 
GeneralRe: Mouse Position Pin
Shog92-Jan-03 10:00
sitebuilderShog92-Jan-03 10:00 
GeneralList view control with tab stops Pin
2-Jan-03 9:47
suss2-Jan-03 9:47 
Is it possible to set tab stops with a list view control in report mode as can be done with a list box, akin to LBS_USETABSTOPS?

If the answer to the above is no, let me explain what I'm trying to accomplish and I would welcome suggestions as to what would be a better approach. The application I'm working on has a live display of commands, events, and data packets to and from a hardware device. It can also write a log file with that information. The user needs to be able to open that log file and view it in a variation on the live log window. The log file can grow to be arbitrarily large. The log file is parsed once to determine a "packet" count and line count, and then a virtual list control is created (LVS_OWNERDATA). The log file is subsequently re-parsed on demand to cache a range of packets around the current view position. The user can enable and disable details display on all packets. Without details, the list would lend itself well to columns, but with details display, it wouldn't, since the details need to be formatted as:

1/1/03 9:39:59.321____usb_____Command___Reset
____Data = [03 0C 00]
1/1/03 9:39:59.321____usb_____Event______Command Complete
____Data = [0E 04]: 01 03 0C 00
____Num_HCI_Command_Packets = 0x01
____Command_Opcode = 0xC03 ("Reset")
____Status = 0x00 ("Success")
____^______________^_______^_________^

The packet header lines need to be column-aligned, but the details, when shown, run across column boundaries. Therefore, I need the list control to have a single column, but use tab stops to align the fields at the positions indicated with carets.

So...should I switch to a list box with owner draw style to avoid bringing all of the packets into memory instead? Ideally, I'd like to stick with a list view control and somehow get it to respect tabs instead of just showing a
box character.

Thanks in advance,
Brian
GeneralRe: List view control with tab stops Pin
Shog92-Jan-03 9:59
sitebuilderShog92-Jan-03 9:59 
GeneralRe: List view control with tab stops Pin
2-Jan-03 10:58
suss2-Jan-03 10:58 
GeneralRe: List view control with tab stops Pin
Shog92-Jan-03 11:31
sitebuilderShog92-Jan-03 11:31 
GeneralRe: List view control with tab stops Pin
Brian Tietz2-Jan-03 11:52
Brian Tietz2-Jan-03 11:52 
GeneralRe: List view control with tab stops Pin
Shog92-Jan-03 12:01
sitebuilderShog92-Jan-03 12:01 
GeneralRe: List view control with tab stops Pin
Brian Tietz2-Jan-03 12:23
Brian Tietz2-Jan-03 12:23 
GeneralRe: List view control with tab stops Pin
Shog92-Jan-03 16:02
sitebuilderShog92-Jan-03 16:02 
GeneralTools for internationalization Pin
Anonymous2-Jan-03 9:28
Anonymous2-Jan-03 9:28 
GeneralRe: Tools for internationalization Pin
Chris Richardson2-Jan-03 20:59
Chris Richardson2-Jan-03 20:59 
GeneralATL and Active X problem Pin
act_x2-Jan-03 9:07
act_x2-Jan-03 9:07 
GeneralCObject or CStatic Pin
raner2-Jan-03 8:44
raner2-Jan-03 8:44 
GeneralRe: CObject or CStatic Pin
Pavel Klocek2-Jan-03 10:49
Pavel Klocek2-Jan-03 10:49 
GeneralRe: CObject or CStatic Pin
raner2-Jan-03 16:26
raner2-Jan-03 16:26 
GeneralLinker Error Pin
Ryan B.2-Jan-03 8:39
Ryan B.2-Jan-03 8:39 
GeneralRe: Linker Error Pin
RobJones2-Jan-03 8:44
RobJones2-Jan-03 8:44 
GeneralRe: Linker Error Pin
Tim Smith2-Jan-03 8:45
Tim Smith2-Jan-03 8:45 
GeneralRe: Linker Error Pin
Ryan B.2-Jan-03 8:51
Ryan B.2-Jan-03 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.