Skip to content

Commit

Permalink
Fix incorrect DPI scaling of popup dialogues, and related process pat…
Browse files Browse the repository at this point in the history
…h not displayed even if not exceeds 260 characters
  • Loading branch information
RatinCN committed Jul 10, 2022
1 parent 7b5b8a1 commit 5a7c1c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified Source/AlleyWind/3rdParty/lib/x64/Debug/NTAssassin.lib
Binary file not shown.
Binary file modified Source/AlleyWind/3rdParty/lib/x64/Debug/NTAssassin.pdb
Binary file not shown.
12 changes: 6 additions & 6 deletions Source/AlleyWind/Relationship.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ INT_PTR WINAPI WndPropRelationshipDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, L
HWND hWnd, hCtl;
TCHAR szTempPath[MAX_PATH], szBuffer[1024];
DWORD dwPID, dwTID;
HANDLE hProc, hThread;
HANDLE hProc = NULL, hThread = NULL;
PVOID pThreadStartAddr;
INT i, iTemp;
UINT uTemp;
Expand Down Expand Up @@ -193,24 +193,24 @@ INT_PTR WINAPI WndPropRelationshipDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, L
NtClose(hProc);
}
} else if (wParam == MAKEWPARAM(IDM_WNDOP_PROPERTIES, 0)) {
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
if (hRelatedWnd)
AW_OpenWndPropDlg(hRelatedWnd);
} else if (wParam == MAKEWPARAM(IDM_WNDOP_LOCATEINLIST, 0)) {
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
if (hRelatedWnd && AW_LocateWindowInTree(hRelatedWnd))
BringWindowToTop(AW_GetMainDlg());
} else if (wParam == MAKEWPARAM(IDM_WNDOP_HIGHLIGHT, 0)) {
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
if (hRelatedWnd)
AW_HighlightWindow(hRelatedWnd);
}
} else if (uMsg == WM_NOTIFY) {
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE)lParam;
if (lpnmitem->hdr.idFrom == IDC_WNDPROP_RELATIONSHIP_WINDOW_LIST && lpnmitem->hdr.code == NM_RCLICK && lpnmitem->iItem != -1) {
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
HWND hRelatedWnd = GetSelectedRelationship(hDlg);
if (IsWindow(hRelatedWnd)) {
POINT pt;
POINT pt;
if (!GetCursorPos(&pt))
pt.x = pt.y = 0;
Ctl_PopupMenu(hPropRelationshipWndOpMenu, pt.x, pt.y, hDlg);
Expand Down

0 comments on commit 5a7c1c9

Please sign in to comment.