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

winliblt.cpp, winliblt.h: translated #24

Open
wants to merge 1 commit 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
@@ -104,13 +105,13 @@ void ReleaseWinLib(HINSTANCE dllInstance)
{
if (WindowsManager.WindowsCount != 0)
{
// pruser - po unloadu pluginu muze spadnout soft, protoze se zavola window-procedura
// v unloadnutem DLL (jde-li o okna zabita v ramci zabitych threadu, je to OK)
// a difficult situation - after unload of the plugin, the soft can crash, because the window procedure is called
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

soft -> app

}

// provedeme odregistrovani trid, aby pri dalsim loadu pluginu mohly byt znovu zaregistrovany
// deregister classes, so that they can be registered again when the plugin is loaded again
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deregister -> unregister

@@ -127,8 +128,8 @@ void ReleaseWinLib(HINSTANCE dllInstance)
// ****************************************************************************
// 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 calling CreateWindow from CWindow::CWindowProc
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

@@ -280,8 +281,8 @@ CWindow::CWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
else
{
wnd->HWindow = hwnd;
//--- zarazeni okna podle hwnd do seznamu oken
if (!WindowsManager.AddWindow(hwnd, wnd)) // chyba
//--- including the window by hwnd into the list of windows
Copy link
Contributor

@janrysavy janrysavy Dec 24, 2023

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

// pokud aktualni WndProc je jina nez nase, nebudeme ji menit,
// protoze nekdo v rade subclasseni uz vratil puvodni WndProc
// if the current WndProc is different from ours, we won't change it,
// because someone in the subclassing queue has already returned the original WndProc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

queue -> chain

// je potreba zavolat po pouziti WinLibu; 'dllInstance' je modul pluginu (pouziva se pri zruseni
// registrace univerzalnich trid WinLibu)
// must be called after using WinLib; 'dllInstance' is the module of the plugin (it is used for
// cancellation of registration of WinLib universal classes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cancellation of registration -> unregistering

@@ -90,9 +93,9 @@ class CWindowsObject // predek vsech MS-Windows objektu
SetHelpID(helpID);
}

virtual ~CWindowsObject() {} // aby se u potomku volal jejich destruktor
virtual ~CWindowsObject() {} // so that the destructor of the child is called
Copy link
Contributor

@janrysavy janrysavy Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// so that destructor is called for derived objects

CDialog::Transfer;

// testovano s resourcem dialogu stranky se stylem:
// tested with the resource of the dialog of the page with the style:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// tested with a dialog resource of a page with style:

// PSH_NOAPPLYNOW, PSH_USECALLBACK a PSH_HASHELP (jinak staci 'flags'==0)
// it is ideal to add objects of individual pages to this object
// and then add them as "static" (default choice) via the Add method;
// 'startPage' and 'lastPage' can be only one variable (value in/link out);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link -> pointer

@@ -377,7 +382,7 @@ class CPropertyDialog : public TIndirectArray<CPropSheetPage>
DWORD Flags;
PFNPROPSHEETCALLBACK Callback;

DWORD* LastPage; // posledni zvolena stranka (muze byt NULL, pokud nezajima)
DWORD* LastPage; // the last selected page (can be NULL, if not interested)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not interested -> not required

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