Results 1 to 3 of 3

Thread: getclassinfo registerwindo

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    30

    getclassinfo registerwindo

    how can i use getclassinfo registerwindowex...............

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: getclassinfo registerwindo

    GetClassInfo example :

    VB Code:
    1. Private Type WNDCLASS
    2.     style As Long
    3.     lpfnwndproc As Long
    4.     cbClsextra As Long
    5.     cbWndExtra2 As Long
    6.     hInstance As Long
    7.     hIcon As Long
    8.     hCursor As Long
    9.     hbrBackground As Long
    10.     lpszMenuName As String
    11.     lpszClassName As String
    12. End Type
    13. Private Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long
    14. Private Declare Function GetClassInfo Lib "user32" Alias "GetClassInfoA" (ByVal hInstance As Long, ByVal lpClassName As String, lpWndClass As WNDCLASS) As Long
    15. Private Sub Form_Paint()
    16.     'KPD-Team 1999
    17.     'URL: [url]http://www.allapi.net/[/url]
    18.     'E-Mail: [email][email protected][/email]
    19.     Dim WC As WNDCLASS
    20.     'Get class info
    21.     GetClassInfo ByVal 0&, "BUTTON", WC
    22.     'Clear the form
    23.     Me.Cls
    24.     'Print the retrieved information to the form
    25.     Me.Print "The button's default background is set to color-number:" + Str$(GetSysColor(WC.hbrBackground))
    26. End Sub


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    30

    Re: getclassinfo registerwindo

    thank for the code ... but what i need is get all the classinfo of scicalc "calculator" info buttons and the text box ..... how can i use getclassinfo or registerclass

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width