-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
winlib.cpp, winlib.h: translated #25
base: main
Are you sure you want to change the base?
Conversation
@@ -328,8 +329,8 @@ CWindow::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam) | |||
return TRUE; | |||
} | |||
if (GetWindowLongPtr(HWindow, GWL_STYLE) & WS_CHILD) | |||
break; // pokud F1 nezpracujeme a pokud je to child okno, nechame F1 propadnout do parenta | |||
return TRUE; // pokud to neni child, ukoncime zpracovani F1 | |||
break; // if F1 was not handled and it is child window, let F1 go to parent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go -> pass
// tady uz multi-threadovost nehrozi (konci soft, thready jsou/byly ukonceny) | ||
// dealokujeme aspon nejakou pamet | ||
TRACE_ET(_T("Some window is still opened in ") << QueueName << _T(" queue!")); // should not happen... | ||
// multithreadness is not a problem here (soft is ending, threads are/were terminated) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multithreadness -> multi-threading
soft -> app
@@ -114,8 +115,8 @@ BOOL WinLibIsWindowsVersionOrGreater(WORD wMajorVersion, WORD wMinorVersion, WOR | |||
// **************************************************************************** | |||
// CWindow | |||
// | |||
// lpvParam - v pripade, ze se pri CreateWindow zavola CWindow::CWindowProc | |||
// (je v tride okna), musi obsahovat adresu objektu vytvareneho okna | |||
// lpvParam - in case of CreateWindow calling CWindow::CWindowProc (it is in window class), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case CWindow::CWindowProc is called during CreateWindow
@@ -382,8 +383,8 @@ CWindow::CWindowProcInt(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL | |||
if (wnd->UnicodeWnd != unicode) | |||
TRACE_C("Incompatible windows procedure."); | |||
#endif // _UNICODE | |||
//--- zarazeni okna podle hwnd do seznamu oken | |||
if (!WindowsManager.AddWindow(hwnd, wnd)) // chyba | |||
//--- adding window to the list of windows per hwnd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inserting the window by hwnd to the window list
@@ -717,25 +718,25 @@ CDialog::CDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) | |||
else | |||
{ | |||
dlg->HWindow = hwndDlg; | |||
//--- zarazeni okna podle hwndDlg do seznamu oken | |||
if (!WindowsManager.AddWindow(hwndDlg, dlg)) // chyba | |||
//--- adding window to the list of windows per hwnd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inserting the window by hwnd to the window list
@@ -458,11 +459,11 @@ CWindow::CWindowProcInt(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL | |||
#endif // _UNICODE | |||
} | |||
} | |||
//--- zavolani metody WindowProc(...) prislusneho objektu okna | |||
//--- calling method WindowProc(...) of the object of window |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of the corresponding window object
{ | ||
TRACE_ET(_T("Unable to create dialog.")); | ||
return TRUE; | ||
} | ||
dlg->NotifDlgJustCreated(); // zavedeno jako misto pro upravu layoutu dialogu | ||
dlg->NotifDlgJustCreated(); // loaded as a place for layout modification of the dialog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// introduced as a place for adjusting the dialog layout
No description provided.