Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

CListBox hidden while I SendMessage

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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…

647 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