Solved

CListBox hidden while I SendMessage

Posted on 1997-11-10
1
183 Views
Last Modified: 2013-11-19
I have a CListBox object on a Dialog. In my number crunching
"C" code I use the Windows API SendMessage to the HWND. This
works EXCEPT the listbox goes into some hidden mode where
all I can see is the scrollbar on the right. The size of
the scrollbar shrinks as expected as I send SendMessage.
What do I need to do to see the information as I write it
with the SendMessage?? Also the data seems to come in
packets. Is there some sort of flush that I can do to
see the data as I write it to the list box??

Thanks!
0
Comment
Question by:dave_p
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1309765
You can use UpdateWindow on the listbox's HWND to get it to paint while you're adding stuff to it.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 85
Generic progress indicator 6 121
conditional code and condition difference 9 87
Bartender label printing - switch on and off graphics 3 92
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question