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
ede59b0c
Commit
ede59b0c
authored
Aug 27, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: If composition string is reduced to 0 characters hide composition window.
parent
a72e1820
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
imm.c
dlls/imm32/imm.c
+19
-4
No files found.
dlls/imm32/imm.c
View file @
ede59b0c
...
...
@@ -74,7 +74,7 @@ static UINT WM_MSIME_DOCUMENTFEED;
*/
static
LRESULT
WINAPI
IME_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
void
UpdateDataInDefaultIMEWindow
(
HWND
hwnd
);
static
void
UpdateDataInDefaultIMEWindow
(
HWND
hwnd
,
BOOL
showable
);
static
void
ImmInternalPostIMEMessage
(
UINT
,
WPARAM
,
LPARAM
);
static
void
ImmInternalSetOpenStatus
(
BOOL
fOpen
);
static
HIMCC
updateResultStr
(
HIMCC
old
,
LPWSTR
resultstr
,
DWORD
len
);
...
...
@@ -1672,7 +1672,7 @@ BOOL WINAPI ImmSetCompositionStringW(
}
}
UpdateDataInDefaultIMEWindow
(
hwndDefault
);
UpdateDataInDefaultIMEWindow
(
hwndDefault
,
FALSE
);
ImmInternalPostIMEMessage
(
WM_IME_COMPOSITION
,
wParam
,
flags
);
...
...
@@ -2033,9 +2033,24 @@ static void PaintDefaultIMEWnd(HWND hwnd)
EndPaint
(
hwnd
,
&
ps
);
}
static
void
UpdateDataInDefaultIMEWindow
(
HWND
hwnd
)
static
void
UpdateDataInDefaultIMEWindow
(
HWND
hwnd
,
BOOL
showable
)
{
LPCOMPOSITIONSTRING
compstr
;
if
(
root_context
->
IMC
.
hCompStr
)
compstr
=
ImmLockIMCC
(
root_context
->
IMC
.
hCompStr
);
else
compstr
=
NULL
;
if
(
compstr
==
NULL
||
compstr
->
dwCompStrLen
==
0
)
ShowWindow
(
hwndDefault
,
SW_HIDE
);
else
if
(
showable
)
ShowWindow
(
hwndDefault
,
SW_SHOWNOACTIVATE
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_ERASENOW
|
RDW_INVALIDATE
);
if
(
compstr
!=
NULL
)
ImmUnlockIMCC
(
root_context
->
IMC
.
hCompStr
);
}
/*
...
...
@@ -2075,7 +2090,7 @@ static LRESULT WINAPI IME_WindowProc(HWND hwnd, UINT msg, WPARAM wParam,
if
(
lParam
&
GCS_RESULTSTR
)
IMM_PostResult
(
root_context
);
else
UpdateDataInDefaultIMEWindow
(
hwnd
);
UpdateDataInDefaultIMEWindow
(
hwnd
,
TRUE
);
break
;
case
WM_IME_STARTCOMPOSITION
:
TRACE
(
"IME message %s, 0x%x, 0x%x
\n
"
,
...
...
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