Click here to Skip to main content
15,904,935 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Bit shifting in VB Pin
Dave Kreskowiak7-Dec-03 14:40
mveDave Kreskowiak7-Dec-03 14:40 
GeneralRe: Bit shifting in VB Pin
Ian Darling7-Dec-03 2:43
Ian Darling7-Dec-03 2:43 
GeneralRe: Bit shifting in VB Pin
cnurse7-Dec-03 4:22
cnurse7-Dec-03 4:22 
GeneralVB.Net WS_EX_LAYERED Forms Pin
andrew|5-Dec-03 4:32
andrew|5-Dec-03 4:32 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
cnurse5-Dec-03 18:56
cnurse5-Dec-03 18:56 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
andrew|5-Dec-03 21:24
andrew|5-Dec-03 21:24 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
Dave Kreskowiak6-Dec-03 4:57
mveDave Kreskowiak6-Dec-03 4:57 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
andrew|6-Dec-03 5:44
andrew|6-Dec-03 5:44 
*headsmack* Youre absolutely right.

As for your question of why... If you draw to an offscreen DC, maintain a background color (which in this case is argb(0,0,0,0)) of the DC, pass it to UpdateLayeredWindow with the right params, it will render the window for you and continue to handle the wm_paint messages that come in, until you remove the ws_ex_layered style and re-add it (in which case you need to call your fuction which draws offscreen again...). Its a great lil bit o' magic, and it allows you to have a window, for example, based on a PNG with alpha channel support.

Thanks for bringing that ANDing to my attention though!

UPDATE:
I stumbled upon an article which stated that Integers in vb.net are Longs in vb6. I had to modify the declares for SetWindowLong and GetWindowLong so that the params used Integers and returned Integers instead of Longs. Once I changed this, and used the ORing instead of the ANDing, everything worked as it should have.

Thanks again for the help guys!
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
cnurse6-Dec-03 22:52
cnurse6-Dec-03 22:52 
GeneralMSScriptControl and VB.Net Control Events Pin
andrew|5-Dec-03 4:29
andrew|5-Dec-03 4:29 
QuestionHow can I integrated a combobox ? Pin
jlizardo5-Dec-03 3:29
jlizardo5-Dec-03 3:29 
QuestionHow to Stop a Big Loop Pin
rrocha25-Dec-03 0:06
rrocha25-Dec-03 0:06 
AnswerRe: How to Stop a Big Loop Pin
Ian Darling5-Dec-03 0:19
Ian Darling5-Dec-03 0:19 
GeneralMy Computer Shell Extension Pin
MusclePup4-Dec-03 22:58
MusclePup4-Dec-03 22:58 
GeneralVisual Studio Freezing. Pin
cnurse4-Dec-03 21:40
cnurse4-Dec-03 21:40 
GeneralHelp me to draw Icon in CheckedListBox Pin
VitaminY4-Dec-03 16:38
sussVitaminY4-Dec-03 16:38 
GeneralCasting variables in VB.NET Pin
Jim Taylor4-Dec-03 12:16
Jim Taylor4-Dec-03 12:16 
GeneralRe: Casting variables in VB.NET Pin
Nick Seng4-Dec-03 14:48
Nick Seng4-Dec-03 14:48 
GeneralRe: Casting variables in VB.NET Pin
Dave Kreskowiak4-Dec-03 18:58
mveDave Kreskowiak4-Dec-03 18:58 
GeneralRe: Casting variables in VB.NET Pin
Jim Taylor4-Dec-03 22:48
Jim Taylor4-Dec-03 22:48 
Generalsending information from one application to another Pin
Leonard Munteanu4-Dec-03 10:39
Leonard Munteanu4-Dec-03 10:39 
GeneralRe: sending information from one application to another Pin
Dave Kreskowiak4-Dec-03 18:48
mveDave Kreskowiak4-Dec-03 18:48 
GeneralRe: sending information from one application to another Pin
Duncan Edwards Jones5-Dec-03 4:45
professionalDuncan Edwards Jones5-Dec-03 4:45 
GeneralRe: sending information from one application to another Pin
Guillermo Rivero5-Dec-03 11:06
Guillermo Rivero5-Dec-03 11:06 
GeneralRe: sending information from one application to another Pin
Dave Kreskowiak6-Dec-03 5:08
mveDave Kreskowiak6-Dec-03 5:08 

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.