?
Solved

CListBox hidden while I SendMessage

Posted on 1997-11-10
1
Medium Priority
?
185 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 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