mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
CORE-18867
This commit is contained in:
parent
9f56e67bc2
commit
8ba330ead2
1 changed files with 3 additions and 2 deletions
|
@ -423,8 +423,9 @@ LRESULT CMainWindow::OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BO
|
|||
(selectionModel.m_bShow &&
|
||||
((toolsModel.GetActiveTool() == TOOL_FREESEL) || (toolsModel.GetActiveTool() == TOOL_RECTSEL)));
|
||||
BOOL textShown = (toolsModel.GetActiveTool() == TOOL_TEXT && ::IsWindowVisible(textEditWindow));
|
||||
DWORD dwStart, dwEnd;
|
||||
textEditWindow.SendMessage(EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
|
||||
DWORD dwStart = 0, dwEnd = 0;
|
||||
if (::IsWindowVisible(textEditWindow))
|
||||
textEditWindow.SendMessage(EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
|
||||
BOOL hasTextSel = (dwStart < dwEnd);
|
||||
|
||||
switch (lParam)
|
||||
|
|
Loading…
Reference in a new issue