mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Use LONG_PTR with SetWindowLongPtr
This commit is contained in:
parent
b0ce88395f
commit
7ff99cdbf7
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ void MainWindow::workmodeUpdated(DBIWorkMode mode) {
|
||||||
psSetupTrayIcon();
|
psSetupTrayIcon();
|
||||||
HWND psOwner = (HWND)GetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT);
|
HWND psOwner = (HWND)GetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT);
|
||||||
if (!psOwner) {
|
if (!psOwner) {
|
||||||
SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, (LONG)ps_tbHider_hWnd);
|
SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, (LONG_PTR)ps_tbHider_hWnd);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue