Page 1 of 1
always on top
Posted: 2004-12-24 06:57:17
by punkesito
always on top for text window
Posted: 2004-12-29 22:14:11
by Yoko
done, from 41?.? (4AV)
Posted: 2004-12-30 00:09:49
by Ex-Brodyaga
it was my idea

))))))
Posted: 2004-12-30 00:23:30
by Yoko
don't worry, be happy
Posted: 2005-01-04 18:54:29
by KalVasFlam
why don't add transparency too ^_^
(just call SetLayeredWindowAttribute (WinXP))
Posted: 2005-01-04 23:46:02
by Edred
Ex-Brodyaga wrote:it was my idea

))))))
very bad idea...

Posted: 2005-01-05 19:16:00
by Lem
systems prior to w2k won't support this,though
Posted: 2005-01-05 20:16:43
by AGRS
Lem wrote:systems prior to w2k won't support this,though
Not so hard to check OS version.
Posted: 2005-01-06 01:20:11
by Yoko
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));
Posted: 2005-01-06 01:48:39
by KalVasFlam
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:
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.
Posted: 2005-01-06 01:50:21
by Yoko
there was no need quote this doc, i read it 5 times and applied it in Borland Builder 2 times. i already found error, it was in other part of code then i thought.
Posted: 2005-01-06 01:51:27
by KalVasFlam
sorry
Posted: 2005-01-06 01:53:04
by Yoko
enough for today, preparing release....
Posted: 2005-01-06 02:14:35
by KalVasFlam
Lord:
When DLL gets FAT furthermore
use #pragma comment (linker,"/FILEALIGN:0x200") then relink with msvcrt.lib and ignore default libs.
Posted: 2005-01-06 02:40:33
by Yoko
i have no idea of intreconnectionFAT (file allocation table?) with DLL
anyway,
http://yoko.netroof.net/forum/viewtopic ... 2956#12956 for today