always on top

Requests of new features and reports on bugs needs to be fixed

Moderators: Murderator+, Murderator

Post Reply
punkesito
Posts: 46
Joined: 2004-10-16 12:30:54
Location: Argentina
Contact:

always on top

Post by punkesito »

always on top for text window
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

done, from 41?.? (4AV)
Ex-Brodyaga
Junior Expert
Posts: 150
Joined: 2004-04-12 20:26:41

Post by Ex-Brodyaga »

it was my idea :)))))))
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

don't worry, be happy
KalVasFlam
Posts: 30
Joined: 2004-11-30 13:53:59

Post by KalVasFlam »

why don't add transparency too ^_^

(just call SetLayeredWindowAttribute (WinXP))
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

Ex-Brodyaga wrote:it was my idea :)))))))


very bad idea... :(
Lem
Posts: 49
Joined: 2004-05-23 18:31:26

Post by Lem »

systems prior to w2k won't support this,though
AGRS
Expert!
Posts: 1007
Joined: 2004-04-04 21:40:09
Contact:

Post by AGRS »

Lem wrote:systems prior to w2k won't support this,though


Not so hard to check OS version.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post 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));
KalVasFlam
Posts: 30
Joined: 2004-11-30 13:53:59

Post 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.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post 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.
KalVasFlam
Posts: 30
Joined: 2004-11-30 13:53:59

Post by KalVasFlam »

sorry
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

enough for today, preparing release....
KalVasFlam
Posts: 30
Joined: 2004-11-30 13:53:59

Post by KalVasFlam »

Lord:

When DLL gets FAT furthermore

use #pragma comment (linker,"/FILEALIGN:0x200") then relink with msvcrt.lib and ignore default libs.

Code: Select all

night ^_^
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

i have no idea of intreconnectionFAT (file allocation table?) with DLL

anyway, http://yoko.netroof.net/forum/viewtopic ... 2956#12956 for today
Post Reply