Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aebda22e
Commit
aebda22e
authored
Nov 07, 1999
by
Jim Aston
Committed by
Alexandre Julliard
Nov 07, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the height of the ComboBox drop list.
parent
edb77973
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
31 deletions
+32
-31
combo.c
controls/combo.c
+32
-31
No files found.
controls/combo.c
View file @
aebda22e
...
...
@@ -154,37 +154,6 @@ static LRESULT COMBO_NCDestroy( LPHEADCOMBO lphc )
}
/***********************************************************************
* CBForceDummyResize
*
* The dummy resize is used for listboxes that have a popup to trigger
* a re-arranging of the contents of the combobox and the recalculation
* of the size of the "real" control window.
*/
static
void
CBForceDummyResize
(
LPHEADCOMBO
lphc
)
{
RECT
windowRect
;
GetWindowRect
(
CB_HWND
(
lphc
),
&
windowRect
);
/*
* We have to be careful, resizing a combobox also has the meaning that the
* dropped rect will be resized. In this case, we want to trigger a resize
* to recalculate layout but we don't want to change the dropped rectangle
* So, we add the size of the dropped rectangle to the size of the control.
* this will cancel-out in the processing of the WM_WINDOWPOSCHANGING
* message.
*/
SetWindowPos
(
CB_HWND
(
lphc
),
(
HWND
)
NULL
,
0
,
0
,
windowRect
.
right
-
windowRect
.
left
,
windowRect
.
bottom
-
windowRect
.
top
+
lphc
->
droppedRect
.
bottom
-
lphc
->
droppedRect
.
top
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
/***********************************************************************
* CBGetTextAreaHeight
*
* This method will calculate the height of the text area of the
...
...
@@ -291,6 +260,38 @@ static INT CBGetTextAreaHeight(
return
iTextItemHeight
;
}
/***********************************************************************
* CBForceDummyResize
*
* The dummy resize is used for listboxes that have a popup to trigger
* a re-arranging of the contents of the combobox and the recalculation
* of the size of the "real" control window.
*/
static
void
CBForceDummyResize
(
LPHEADCOMBO
lphc
)
{
RECT
windowRect
;
int
newComboHeight
;
newComboHeight
=
CBGetTextAreaHeight
(
CB_HWND
(
lphc
),
lphc
)
+
2
*
COMBO_YBORDERSIZE
();
GetWindowRect
(
CB_HWND
(
lphc
),
&
windowRect
);
/*
* We have to be careful, resizing a combobox also has the meaning that the
* dropped rect will be resized. In this case, we want to trigger a resize
* to recalculate layout but we don't want to change the dropped rectangle
* So, we pass the height of text area of control as the height.
* this will cancel-out in the processing of the WM_WINDOWPOSCHANGING
* message.
*/
SetWindowPos
(
CB_HWND
(
lphc
),
(
HWND
)
NULL
,
0
,
0
,
windowRect
.
right
-
windowRect
.
left
,
newComboHeight
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
/***********************************************************************
* CBCalcPlacement
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment