Solved

CListBox hidden while I SendMessage

Posted on 1997-11-10
1
179 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
1 Comment
 
LVL 15

Accepted Solution

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now