-
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
winliblt.cpp, winliblt.h: translated #24
base: main
Are you sure you want to change the base?
Conversation
@@ -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 |
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.
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 |
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.
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 |
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
@@ -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 |
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
// 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 |
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.
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) |
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.
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 |
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.
// 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: |
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.
// 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); |
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.
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) |
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.
not interested -> not required
No description provided.