Hello,
Actually, size of dropdown button use system metrics for size.
If you want to change this and use a specific size, you can change
CGridCellCombo::Draw method in MFCGrid\GridCellCombobox.cpp.
This method draw a combobox cell.
I think you can only change this line:
CSize sizeScroll(GetSystemMetrics(SM_CXVSCROLL),
GetSystemMetrics(SM_CYHSCROLL));
For rebuild Win32::GUI::Grid, you need to download Sourcecode.
(from here : http://perso.club-internet.fr/rocherl/Win32GUI.html#Grid)
Unzip it in a directory, made change in Draw method and build it.
for build Win32::GUI::Grid
perl makefile.pl Create Makefile
nmake Build Win32::GUI::Grid
nmake install Install Win32::GUI::Grid
for only build MFCGrid lib, run nmake in MFCGrid directory.
You need Visual 6 C++ (and MFC lib).
Laurent.
> Hello
>
> I use Grid control and every cell in the grid is GVIT_COMBO ,in other
> words combobox. The width of drop down button is by default 15 pixel.
> How can I change it to 10 or 8 pixel? I suppose I should recompile
> MFCGrid or another dll, but I dont know what I should modify there.
>
> Thanks.
>
> --
> Best regards,
> Pavel