BOOL UpdateWindow(
HWND hWnd // handle of window
);
The UpdateWindow function updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty. The function sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent.
Thanks any way, but this method have only effect with my own program. I'm trying write a Program to change Appearancy of windows but not require to restart windows.
Please help me.
You ca try to replace implementation/behaviour for default (global) window classes in a dll and to make this dll to be implicitely loaded by all process. See documentation for RegisterClassEx, "System Classes", "Application Global Classes", CS_GLOBALCLASS , "How the System Locates a Window Class" in MSDN PlatformSDK|UserInterface|Windows user interface ....
To make your dll to be loaded by all process in "
Windows NT/2000/XP: To create a class that can be used in every process, create the window class in a .dll and load the .dll in every process. To load the .dll in every process, add its name to the AppInit_DLLs value in following registry key:
Whenever a process starts, the system loads the specified .dll in the context of the newly started process before calling its entry-point function. The .dll must register the class during its initialization procedure and must specify the CS_GLOBALCLASS style.
"
But if you need also already running processes to use same dll it may be a little difficult.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.