how i can change ListBox style after creation to be LBS_OwnerDraw;
However you could try with CUSTOMDRAW instead of OWNERDRAW.
...
Top-level dialog (class = #32770) | | _____________|___________________________________ | | | | | | | | | | | | Tab control Tab Page1 Tab Page2 Tab Page3 (Child dialog1) (Child dialog2) (Child dialog3) (class = #32770) (class = #32770) (class = #32770) | | | Listbox
WasStyle& = GetWindowLong(hWnd&, %GWL_STYLE) '// Get current LISTBOX style IF (WasStyle& AND %LBS_OWNERDRAWFIXED) = 0 THEN NewStyle& = %WS_CHILD OR %WS_VISIBLE OR %LBS_NOTIFY OR %WS_TABSTOP OR %LBS_HASSTRINGS OR %LBS_OWNERDRAWFIXED OR %LBS_NOINTEGRALHEIGHT nRet& = SetWindowLong(hWnd&, %GWL_STYLE, NewStyle&) zTrace(STR$(nRet&)+STR$(WasStyle&)+STR$(NewStyle&)+str$(GetWindowLong(hWnd&, %GWL_STYLE))) END IF
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: