Results 1 to 3 of 3

Thread: for what we uuse thes function of api

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    21

    for what we uuse thes function of api

    Hello

    for what we use the following
    Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long

    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

    Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

    Private Const WS_EX_LAYOUTRTL = &H400000

    Private Const GWL_EXSTYLE = (-20)



    with thanks

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    GetWindowLong and SetWindowLong is used to get/set attributes of windows, like WindowProcs, Styles, and others.

    FindWindowEx is used to wind a subwindow within a window (eg. a textbox).

    WS_EX_LAYOUTRTL is used for Right to Left Reading (no idea).

    GWL_EXTSTYLE is used to return/set the extended style of a window (the ones that DOES NOT fit in one WindowLong), marked with a WS_EX_ instead of just a WS_.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Right-to-left is for languages like Hebrew where you read it from right to left, rather than left to right as you would in English.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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