Click here to Skip to main content
15,918,109 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSendMessage() Function Help Pin
Damian Castroviejo12-Jan-05 2:38
Damian Castroviejo12-Jan-05 2:38 
GeneralRe: SendMessage() Function Help Pin
Dave Kreskowiak12-Jan-05 4:20
mveDave Kreskowiak12-Jan-05 4:20 
GeneralRe: SendMessage() Function Help Pin
Damian Castroviejo13-Jan-05 2:11
Damian Castroviejo13-Jan-05 2:11 
GeneralRe: SendMessage() Function Help Pin
Dave Kreskowiak13-Jan-05 3:37
mveDave Kreskowiak13-Jan-05 3:37 
GeneralRe: SendMessage() Function Help Pin
Damian Castroviejo13-Jan-05 6:02
Damian Castroviejo13-Jan-05 6:02 
GeneralPage subtotal in MS Access 2003 Report Pin
steff kamush12-Jan-05 2:35
steff kamush12-Jan-05 2:35 
GeneralRe: Page subtotal in MS Access 2003 Report Pin
Dave Kreskowiak12-Jan-05 3:59
mveDave Kreskowiak12-Jan-05 3:59 
GeneralUpdateLayeredWindow - My great pain :) Pin
Axonn Echysttas11-Jan-05 21:46
Axonn Echysttas11-Jan-05 21:46 
Hi everybody... I got a short question about one nasty little API function which I am in most dire need of. I need to somehow update the translucency / transparency setting of a normal window. Say I got two buttons and a Scrollbar. I need to somehow call the UpdateLayeredWindow function each time the scrollbar is modified so I can modify the translucency (opacity) level of my window. So far, I need to DESTROY and create the window AGAIN and use "SetLayeredWindowAttributes" to achieve this. But it's not a solution, this is a workaround and it's not nice at all : ), I think you agree : ).

Here's what I got so far... (this is VB6 code, but any language will do, I can adapt to anything, the only thing that I need is to actually make this WORK : ) ).

<br />
UpdateLayeredWindow Me.hwnd, Me.hdc, ByVal 0, m_windowSize, m_mainSurfaceDC, <br />
m_srcPoint, 0, m_blendFunc, ULW_ALPHA


You don't have to care about the parameters. My question is not related to those. My question is... can this nasty function be used to set a NORMAL WINDOW? I mean not a bitmap! A window... with some buttons and stuff on it. I am sure it must be possible, but I just don't know how. It's one nasty little function and I can't find anywhere some good documentation about it, only examples that are not working properly or do more than I need this function to do. I Googled for it and 60% of the results were declaring it, but not using it ! HA! Imagine that! : (. The other 40% were either using bitmaps, either not working.

I got one example that uses bitmaps, but that's too complicated and it's not what I need. I tried to put a scrollbar on that window and it wouldn't even appear, of course, since the guy who did this is using some bunch of functions to work with the bitmaps : (.

Thank you a LOT for reading this and I would really appreciate any help, it's for a good cause : ) (freeware application). I sure hope there are some people on the Code Project who ran into this function before.

Just before you ask... no, I can't use .Net to do this, but some .Net ideas WOULD be usefull since I could at least port it to my VB 6.

Have a nice day everybody : )

The Greater Mind Balance
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Dave Kreskowiak12-Jan-05 4:56
mveDave Kreskowiak12-Jan-05 4:56 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Axonn Echysttas12-Jan-05 21:39
Axonn Echysttas12-Jan-05 21:39 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Dave Kreskowiak13-Jan-05 2:10
mveDave Kreskowiak13-Jan-05 2:10 
GeneralRe: UpdateLayeredWindow - My great pain :) Pin
Axonn Echysttas13-Jan-05 9:33
Axonn Echysttas13-Jan-05 9:33 
Generalbuttons location while Drag and Drop Pin
Greeky11-Jan-05 21:24
Greeky11-Jan-05 21:24 
GeneralVB and C++ dll Pin
Tomaz Rotovnik11-Jan-05 20:23
Tomaz Rotovnik11-Jan-05 20:23 
GeneralRe: VB and C++ dll Pin
[DK]KiloDunse11-Jan-05 23:50
[DK]KiloDunse11-Jan-05 23:50 
GeneralRe: VB and C++ dll Pin
Tomaz Rotovnik12-Jan-05 4:30
Tomaz Rotovnik12-Jan-05 4:30 
GeneralRe: VB and C++ dll Pin
[DK]KiloDunse12-Jan-05 4:49
[DK]KiloDunse12-Jan-05 4:49 
GeneralRe: VB and C++ dll Pin
Tomaz Rotovnik12-Jan-05 5:47
Tomaz Rotovnik12-Jan-05 5:47 
GeneralPhone Answer Pin
nitin_ion11-Jan-05 20:13
nitin_ion11-Jan-05 20:13 
GeneralConversion of float to hexadecimal value Pin
phijophlip11-Jan-05 19:56
phijophlip11-Jan-05 19:56 
GeneralRe: Conversion of float to hexadecimal value Pin
Dave Kreskowiak12-Jan-05 3:54
mveDave Kreskowiak12-Jan-05 3:54 
Generaldata connection to ms excel Pin
abdulla hamid11-Jan-05 18:16
abdulla hamid11-Jan-05 18:16 
GeneralRe: data connection to ms excel Pin
Ritesh123411-Jan-05 21:15
Ritesh123411-Jan-05 21:15 
GeneralRe: data connection to ms excel Pin
Britnt712-Jan-05 9:14
Britnt712-Jan-05 9:14 
GeneralRe: ReadFile not working in VB.NET Pin
Dave Kreskowiak11-Jan-05 15:49
mveDave Kreskowiak11-Jan-05 15:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.