I ran into an unexpected problem with the size of the listbox portion of a combobox when XP Themes is enabled. The small example below illustrates the problem when the resource statement is not commented out. With the resource statement in, the listbox portion is much larger than when it is out. Perhaps someone has an idea for a work around.
------------------------------------------------------------------------
The "problem.rc" file below was compiled to "problem.pbr"
Code:
#COMPILE EXE #DIM ALL #INCLUDE "win32api.inc" '#RESOURCE "problem.pbr" %ID_NamesCmbo = 101 FUNCTION PBMAIN() LOCAL hMain, nStyle, i AS LONG, s AS STRING nStyle = %WS_SYSMENU OR %WS_MINIMIZEBOX s = "Problem with XP Themes" DIALOG NEW hMain, s, , , 250, 220, %WS_SYSMENU TO hMain nStyle = %WS_VSCROLL OR %CBS_DISABLENOSCROLL OR %WS_TABSTOP OR %CBS_DROPDOWN OR %CBS_SORT CONTROL ADD COMBOBOX, hMain, %ID_NamesCmbo, , 50, 45, 90, 100, nStyle COMBOBOX RESET hMain, %ID_NamesCmbo FOR i = 1 TO 100 COMBOBOX ADD hMain, %ID_NamesCmbo, "" NEXT i DIALOG SHOW MODAL hMain END FUNCTION
The "problem.rc" file below was compiled to "problem.pbr"
Code:
#include "Resource.h" 1 24 "XPTheme.xml"
Comment