Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11
    Addicted Member
    Join Date
    May 2011
    Posts
    230

    Re: CommonControls (Replacement of the MS common controls)

    Hi Krool,

    I found out a weird bug with ComboBoxW

    When Using the MoveWindow() Api, even if you don't move, don't resize the control, the DropDown Windows appear somewhere else.
    Further more, you cannot Click the Control anymore.

    Here a picture, Since you can't click the Control aftter MoveWindow(), I used CB_SHOWDROPDOWN to show where the DropDown appear.

    Name:  WeirdBug.jpg
Views: 4762
Size:  22.8 KB

    What I was trying to achieve was to set the Height Property so the DropDown list would have a different size.
    However, I learned later, this trick only work when the App is NOT using comctl32.dll version 6

    Furthermore:

    Using original Vb6 Control
    #1 When using comctl32.dll version 5 (Default Vb6, IDE not patched, no manifest)
    ComboBox DropDown box is limited to 8 items You can use the MoveWindow() trick to change that behavior.

    #2 When using comctl32.dll version 6 (IDE patched, or manifest)
    if you put a lot (let's say 50) item in the ComboBox, the DropDown box will fill out the available screen region.
    This seem to be a bug. The compiled program is OK

    Name:  Vb6ThemedBug.png
Views: 4849
Size:  13.7 KB

    in Themed app, the proper way is CB_SETMINVISIBLE but I was attempting to make a code that would work either it is themed or not...

    Is there a way from IDE/EXE to detect if this is the case ?
    Last edited by VbNetMatrix; Sep 3rd, 2017 at 12:40 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width