Marook-Online
* 06.Feb.2012, 14:54 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
10-Oct-2007 03:46
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


With the following code you can add a nice looking dropshadow to a form.
You can also specify any hwnd to add a shadow to a control or menu, whatever you like.

Code
GeSHi (vb):
  1. Private Declare Function GetClassLong Lib "user32" Alias "GetClassLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
  2. Private Declare Function SetClassLong Lib "user32" Alias "SetClassLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
  3.  
  4. Private Const CS_DROPSHADOW = &H20000
  5. Private Const GCL_STYLE = (-26)
  6.  
  7.  
  8. Private Sub Form_Load()
  9.    DropShadow Me.hwnd
  10. End Sub
  11. Private Sub DropShadow(hwnd As Long)
  12.    SetClassLong hwnd, GCL_STYLE, GetClassLong(hwnd, GCL_STYLE) Or CS_DROPSHADOW
  13. End Sub
  14.  
Created by GeSHI 1.0.7.20

Add this code to a form and hit F5 ! Looks like that :
« Last Edit: 10-Oct-2007 03:52 by Marook » Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!