always on top
Moderators: Murderator+, Murderator
always on top
always on top for text window
-
- Posts: 30
- Joined: 2004-11-30 13:53:59
if Injection main window or Text window attribute changed to layered, it just disappears.
SetWindowLong(hwnd, GWL_EXSTYLE,
GetWindowLong(hwnd, GWL_EXSTYLE) | 0x00080000);
i do not know reason, but it seems combination of such window attributes is invalid to display. if someone tell me workaround, i'll be glad.
Just to remind, window created as:
m_hwnd = CreateWindowEx(WS_EX_WINDOWEDGE | WS_EX_CONTROLPARENT,
reinterpret_cast<LPCTSTR>(m_window_class),
"Injection", WS_OVERLAPPED | WS_DLGFRAME | WS_SYSMENU |
WS_MINIMIZEBOX | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, parent, NULL, g_hinstance,
reinterpret_cast<LPVOID>(this));
SetWindowLong(hwnd, GWL_EXSTYLE,
GetWindowLong(hwnd, GWL_EXSTYLE) | 0x00080000);
i do not know reason, but it seems combination of such window attributes is invalid to display. if someone tell me workaround, i'll be glad.
Just to remind, window created as:
m_hwnd = CreateWindowEx(WS_EX_WINDOWEDGE | WS_EX_CONTROLPARENT,
reinterpret_cast<LPCTSTR>(m_window_class),
"Injection", WS_OVERLAPPED | WS_DLGFRAME | WS_SYSMENU |
WS_MINIMIZEBOX | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, parent, NULL, g_hinstance,
reinterpret_cast<LPVOID>(this));
-
- Posts: 30
- Joined: 2004-11-30 13:53:59
from http://msdn.microsoft.com/library/defau ... yerwin.asp
Examples of Using Layered Windows
If you want a dialog box to come up as a translucent window:
Create the dialog box as usual.
On WM_INITDIALOG, set the layered bit of the window's extended style and call SetLayeredWindowAttributes with the desired alpha value.
The code might look like this:
Note that the third parameter of SetLayeredWindowAttributes is a value that ranges from 0 to 255, with 0 making the window completely transparent and 255 making it completely opaque. This parameter mimics the more versatile BLENDFUNCTION of the AlphaBlend API.
Examples of Using Layered Windows
If you want a dialog box to come up as a translucent window:
Create the dialog box as usual.
On WM_INITDIALOG, set the layered bit of the window's extended style and call SetLayeredWindowAttributes with the desired alpha value.
The code might look like this:
Code: Select all
// Set WS_EX_LAYERED on this window
SetWindowLong(hwnd, GWL_EXSTYLE,
GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
// Make this window 70% alpha
SetLayeredWindowAttributes(hwnd, 0, (255 * 70) / 100, LWA_ALPHA);
Note that the third parameter of SetLayeredWindowAttributes is a value that ranges from 0 to 255, with 0 making the window completely transparent and 255 making it completely opaque. This parameter mimics the more versatile BLENDFUNCTION of the AlphaBlend API.
-
- Posts: 30
- Joined: 2004-11-30 13:53:59
Lord:
When DLL gets FAT furthermore
use #pragma comment (linker,"/FILEALIGN:0x200") then relink with msvcrt.lib and ignore default libs.
When DLL gets FAT furthermore
use #pragma comment (linker,"/FILEALIGN:0x200") then relink with msvcrt.lib and ignore default libs.
Code: Select all
night ^_^
i have no idea of intreconnectionFAT (file allocation table?) with DLL
anyway, http://yoko.netroof.net/forum/viewtopic ... 2956#12956 for today
anyway, http://yoko.netroof.net/forum/viewtopic ... 2956#12956 for today