Crate wallpaper_app
source ·Modules
Constants
- Used in
FindWindowExW()
. Is the name of the window class that is the parent of the desktop window: - Used in
FindWindowExW()
. Any application that needs to listen to window messages call this Api to create a worker window. Is the name of the window class we are looking for to put our window into as a child:
Functions
- Combines low-lewel methods for simplify create window at desktop!
- Create window using window handle.
- Create WNDCLASSW and handle to it with custom name and WNDPROC.
- Create window handle for window class (WNDCLASSW) with window_name
- It receives top-level window handles and find windows with class
SHELLDLL_DEF_VIEW_STR
+ child withWORKER_W_STR
class - Find the newly created
WorkerW
Example: - Find
Progman
and get handle. Progman requires fortry_spawn_worker_w()
func - A simple function to handle window messages. You can use it, or define your own. It use PeekMessageW() (https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-peekmessagew)
- Sets worker_w_handle as parent to handle and set window size to
winapi::um::winuser::SM_CXSCREEN
xwinapi::um::winuser::SM_CYSCREEN
- Message to
Progman
to spawn aWorkerW
- Convert string to windows friedly format.