Yoko

All sides of Injection
It is currently 2024-03-28 11:32:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 15 posts ] 
Author Message
 Post subject: always on top
PostPosted: 2004-12-24 06:57:17 
Offline

Joined: 2004-10-16 12:30:54
Posts: 46
Location: Argentina
always on top for text window


Top
   
 Post subject:
PostPosted: 2004-12-29 22:14:11 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
done, from 41?.? (4AV)


Top
   
 Post subject:
PostPosted: 2004-12-30 00:09:49 
Offline
Junior Expert
User avatar

Joined: 2004-04-12 20:26:41
Posts: 150
it was my idea :)))))))


Top
   
 Post subject:
PostPosted: 2004-12-30 00:23:30 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
don't worry, be happy


Top
   
 Post subject:
PostPosted: 2005-01-04 18:54:29 
Offline

Joined: 2004-11-30 13:53:59
Posts: 30
why don't add transparency too ^_^

(just call SetLayeredWindowAttribute (WinXP))


Top
   
 Post subject:
PostPosted: 2005-01-04 23:46:02 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Ex-Brodyaga wrote:
it was my idea :)))))))


very bad idea... :(


Top
   
 Post subject:
PostPosted: 2005-01-05 19:16:00 
Offline

Joined: 2004-05-23 18:31:26
Posts: 49
systems prior to w2k won't support this,though


Top
   
 Post subject:
PostPosted: 2005-01-05 20:16:43 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Lem wrote:
systems prior to w2k won't support this,though


Not so hard to check OS version.


Top
   
 Post subject:
PostPosted: 2005-01-06 01:20:11 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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));


Top
   
 Post subject:
PostPosted: 2005-01-06 01:48:39 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-01-06 01:50:21 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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.


Top
   
 Post subject:
PostPosted: 2005-01-06 01:51:27 
Offline

Joined: 2004-11-30 13:53:59
Posts: 30
sorry


Top
   
 Post subject:
PostPosted: 2005-01-06 01:53:04 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
enough for today, preparing release....


Top
   
 Post subject:
PostPosted: 2005-01-06 02:14:35 
Offline

Joined: 2004-11-30 13:53:59
Posts: 30
Lord:

When DLL gets FAT furthermore

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

Code:
night ^_^


Top
   
 Post subject:
PostPosted: 2005-01-06 02:40:33 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
i have no idea of intreconnectionFAT (file allocation table?) with DLL

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 15 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited