Anyone see what I’m doing wrong using CreateWindowEx with B+?
This just crashes but ‘should’ create a listbox.
Thanks a lot.
This just crashes but ‘should’ create a listbox.
Thanks a lot.
; .lib "User32.dll" ; api_CreateWindowEx% (dwExStyle%, lpClassName$, lpWindowName$, dwStyle%, x%, y%, nWidth%, nHeight%, hWndParent%, hMenu%, hInstance%, lpParam*) : "CreateWindowExA" ; api_GetActiveWindow% () : "GetActiveWindow" AppTitle "test" Const dwExStyle = 512 Const hMenu = 0;3 WS_CHILD = 16384 Shl 16 WS_GROUP = 2 Shl 16 WS_TABSTOP = 1 Shl 16 WS_VISIBLE = 4096 Shl 16 WS_VSCROLL = 32 Shl 16 LBS_USETABSTOPS = 128 xdwStyle = WS_CHILD Or WS_VISIBLE; Or WS_VSCROLL dwStyle = xdwStyle win=CreateWindow ("Win",10,10,800,600,main,11) hWnd = api_GetActiveWindow() api_CreateWindowEx (dwExStyle,"ListBox","test",dwStyle,10,10,200,200,hWnd,hMenu,0,0) While WaitEvent(10)<>$803 Wend End