Yoko
http://forum.yoko.com.ua/

always on top
http://forum.yoko.com.ua/viewtopic.php?f=4&t=2347
Page 1 of 1

Author:  punkesito [ 2004-12-24 06:57:17 ]
Post subject:  always on top

always on top for text window

Author:  Yoko [ 2004-12-29 22:14:11 ]
Post subject: 

done, from 41?.? (4AV)

Author:  Ex-Brodyaga [ 2004-12-30 00:09:49 ]
Post subject: 

it was my idea :)))))))

Author:  Yoko [ 2004-12-30 00:23:30 ]
Post subject: 

don't worry, be happy

Author:  KalVasFlam [ 2005-01-04 18:54:29 ]
Post subject: 

why don't add transparency too ^_^

(just call SetLayeredWindowAttribute (WinXP))

Author:  Edred [ 2005-01-04 23:46:02 ]
Post subject: 

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


very bad idea... :(

Author:  Lem [ 2005-01-05 19:16:00 ]
Post subject: 

systems prior to w2k won't support this,though

Author:  AGRS [ 2005-01-05 20:16:43 ]
Post subject: 

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


Not so hard to check OS version.

Author:  Yoko [ 2005-01-06 01:20:11 ]
Post subject: 

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));

Author:  KalVasFlam [ 2005-01-06 01:48:39 ]
Post subject: 

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:
// 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.

Author:  Yoko [ 2005-01-06 01:50:21 ]
Post subject: 

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.

Author:  KalVasFlam [ 2005-01-06 01:51:27 ]
Post subject: 

sorry

Author:  Yoko [ 2005-01-06 01:53:04 ]
Post subject: 

enough for today, preparing release....

Author:  KalVasFlam [ 2005-01-06 02:14:35 ]
Post subject: 

Lord:

When DLL gets FAT furthermore

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

Code:
night ^_^

Author:  Yoko [ 2005-01-06 02:40:33 ]
Post subject: 

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

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/