mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:05:42 +00:00
- Use system wide caret width and height if one of those parameters is zero
- Ref: http://msdn.microsoft.com/en-us/library/ms648399(VS.85).aspx - Allows to show the caret in riched20a components (Wordpad f.e.) See issue #1559 for more details. svn path=/trunk/; revision=42313
This commit is contained in:
parent
a180d74579
commit
d5ec42ec61
1 changed files with 8 additions and 0 deletions
|
@ -355,6 +355,14 @@ NtUserCreateCaret(
|
|||
}
|
||||
else
|
||||
{
|
||||
if (nWidth == 0)
|
||||
{
|
||||
nWidth = UserGetSystemMetrics(SM_CXBORDER);
|
||||
}
|
||||
if (nHeight == 0)
|
||||
{
|
||||
nHeight = UserGetSystemMetrics(SM_CYBORDER);
|
||||
}
|
||||
ThreadQueue->CaretInfo->Bitmap = (HBITMAP)0;
|
||||
ThreadQueue->CaretInfo->Size.cx = nWidth;
|
||||
ThreadQueue->CaretInfo->Size.cy = nHeight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue