But I have been unable to solve its rolling problem.
In AHKGUI, use the "WS_VSCROLL" style, you can scroll it, but this scroll bar can not be hidden, can not be set, and can not modify it, it destroys the beauty of the menu.
So I tried to use the WINAPI GUI to create a scroll bar to hide it by defining its width, but unfortunately it could not scroll the main window. Who knows where it was wrong?
Code: Select all
GuiCreate()
WS_CHILD := 0x40000000
WS_VSCROLL := 0X200000
WS_VISIBLE := 0x10000000
hwnd:=CreateWindowEx(0, "AutoHotkeyGui", "", 0, 200, 200, 400, 400, 0, 0, 0, 0)
loop 20
CreateWindowEx(0, "static", A_Index "______________________________", WS_CHILD | WS_VISIBLE, 25, 50*(A_Index-1), 400, 40, hwnd, 0, 0, 0)
vWinExStyle := 0
vWinClass := "ScrollBar"
vWinText := ""
;SBS_VERT := 0x1 ;SBS_RIGHTALIGN := 0x4
WS_CHILD := 0x40000000 ,WS_VISIBLE := 0x10000000
vWinStyle := WS_CHILD | WS_VISIBLE | 0x5
vPosX := 0, vPosY := 0, vPosW := 10, vPosH := 8000
hWndParent := hwnd
hMenu := 0, hInstance := 0, vParam := 0
hCtl := CreateWindowEx(0x200000, vWinClass, vWinText, vWinStyle, vPosX, vPosY, vPosW, vPosH, hWndParent, hMenu, hInstance, vParam)
ShowWindow(hwnd, 4)
Return