Solved

Problem with ListBox update

Posted on 2000-05-12
2
288 Views
Last Modified: 2013-12-03
I have a list box created with this :

 rList = CreateWindowEx(WS_EX_CLIENTEDGE | WS_EX_WINDOWEDGE | WS_EX_ACCEPTFILES | WS_EX_TRANSPARENT,"listboxex","",WS_VISIBLE | WS_BORDER | WS_CHILD | WS_TABSTOP | LBS_NOTIFY | LBS_EXTENDEDSEL | LBS_MULTIPLESEL | LBS_STANDARD | WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_TABSTOP,0,0,100,100,HWindow,(HMENU)903,hInstance,0);

listboxex is a class that only processes mouse clicks and drag + drop events . The control also receives WM_CTL* messages .

I have a problem with Windows 98 . The scroll bars and the border of the listbox aren't always visible , only if I send a new item with LB_ADDITEM they are updated , and then again problem . This didn't happen with Win 95

How can I fix it ?




0
Comment
Question by:WxW
2 Comments
 
LVL 15

Accepted Solution

by:
NickRepin earned 35 total points
ID: 2803873
<<WS_EX_TRANSPARENT was designed to be used in very modal situations and the lifetime of a window with this style must be very short. A good use of this style is for drawing tracking points on the top of another window. For example, a dialog editor would use it to draw tracking points around the control that is being selected or moved. >>
0
 
LVL 6

Author Comment

by:WxW
ID: 2804044
great
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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