invoke SetLastError,0
invoke CreateWindowEx,NULL,ADDR ScrollClassName,0,WS_VISIBLE or WS_CHILD or \
SBS_VERT or SBS_LEFTALIGN,550,150,0,300,hWnd,ScrollID,hInstance,NULL
;here is the breakpiont in RadAsm (no errors return)
mov hScrollBar,eax
invoke SetLastError,0
invoke CreateWindowEx,NULL,ADDR ListViewClassName,0,LVS_REPORT or WS_VISIBLE or WS_CHILD\
,0,0,0,0,hWnd,ListViewID,hInstance,NULL
;second breakpoint (Invalid Window Handle)
mov hListView,eax
hi, is the hwnd is null?
And what about hInstance?
if you means hWnd, no it is not 0. Im adding this short prog made in RadAsm so you can look at it if you could be so kind.
So what is it not doing that you want it to do? I'm confused :confused:
Other than that they only thing I see wrong is the size of the window, you are using 0,0,0,0
Do you resize this later on in your program?
Other than that they only thing I see wrong is the size of the window, you are using 0,0,0,0
Do you resize this later on in your program?
Problem is that this ListView is not appearing at all.Even if you specify some size different than 0.
Where is your InitCommonControls?
Damn it im just severe idiot :tongue: . Btw. after adding this missing line "Invalid window handle" changed to "the handle is invalid" but all works just fine.Can't i make pure no errors progs in windows :confused: