winliblt.cpp, winliblt.h: translated#24
Open
majklvi wants to merge 1 commit intoOpenSalamander:mainfrom
Open
Conversation
janrysavy
reviewed
Dec 24, 2023
| { | ||
| // 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 |
| } | ||
|
|
||
| // 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 |
Contributor
There was a problem hiding this comment.
deregister -> unregister
| // | ||
| // 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 |
Contributor
There was a problem hiding this comment.
in case CWindow::CWindowProc is called during CreateWindow
| 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 |
Contributor
There was a problem hiding this comment.
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 |
| // 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) |
Contributor
There was a problem hiding this comment.
cancellation of registration -> unregistering
| } | ||
|
|
||
| virtual ~CWindowsObject() {} // aby se u potomku volal jejich destruktor | ||
| virtual ~CWindowsObject() {} // so that the destructor of the child is called |
Contributor
There was a problem hiding this comment.
// 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: |
Contributor
There was a problem hiding this comment.
// 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); |
| PFNPROPSHEETCALLBACK Callback; | ||
|
|
||
| DWORD* LastPage; // posledni zvolena stranka (muze byt NULL, pokud nezajima) | ||
| DWORD* LastPage; // the last selected page (can be NULL, if not interested) |
Contributor
There was a problem hiding this comment.
not interested -> not required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.