Jump to content
Sign in to follow this  

List with $WS_CLICPSIBLINGS style problem

Recommended Posts


I want to show a combobox over the top of a listview. So that the combobox will show in front I use the style $WS_CLIPSIBLINGS for the listview.

No problem with that unless I put them both in a group box, and then the list view isn't shown.

Here is an example, if you remove the group box by commenting out the two lines with GuiCtrlCreateGroup then the listview is visible again.

#include <GUIConstants.au3>

#Region ### START Koda GUI section ###
$AForm1 = GUICreate("AForm1", 862, 652, 318, 162)
$Group1 = GUICtrlCreateGroup("group 1", 16, 72, 721, 489)
$ListView1 = GUICtrlCreateListView("            Application Name      |       Column 2 heading", 40, 120, 460, 430,$WS_CLIPSIBLINGS)
GUICtrlSendMsg(-1, 0x101E, 0, 250);set col widths
GUICtrlSendMsg(-1, 0x101E, 1, 200)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Combo1 = GUICtrlCreateCombo("Combo1", 334, 177, 200, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
#EndRegion ### END Koda GUI section ###
;DllCall("user32.dll", "int", "InvalidateRect", "hwnd", GUICtrlGetHandle($ListView1), "int", 0, "int", 1);doesn't help

;next line redraws combobox nicely over listview (when listview is shown)
DllCall("user32.dll", "int", "InvalidateRect", "hwnd", GUICtrlGetHandle($Combo1), "int", 0, "int", 1)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE


I'm using but the same happened with the previous version I had installed (

Is this expected behaviour? It looks wrong to me.

EDIT:13th July 2007

I convinced myself that $WS_CLIPSIBLINGS would help when I wanted something over the top of the listview but I'm wrong; it stops any area of the listview being redrawn which is used by another component including the groupbox which 'contains' it. Seems wrong to me but it's not an issue any more.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.