Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

majklvi
Copy link
Contributor

@majklvi majklvi commented Dec 19, 2023

No description provided.

@janrysavy janrysavy added the comments translation Translation of code comments from Czech to English label Dec 20, 2023
@@ -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
Copy link
Contributor

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)
Copy link
Contributor

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),
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comments translation Translation of code comments from Czech to English
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants