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
Posted on 2003-05-22 06:03:45 by AceEmbler
hi, is the hwnd is null?
Posted on 2003-05-22 07:10:20 by dion
And what about hInstance?
Posted on 2003-05-22 07:18:10 by comrade
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.
Posted on 2003-05-22 07:18:27 by AceEmbler
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?
Posted on 2003-05-22 07:23:04 by gorshing
Problem is that this ListView is not appearing at all.Even if you specify some size different than 0.
Posted on 2003-05-22 07:26:33 by AceEmbler
Where is your InitCommonControls?
Posted on 2003-05-22 08:03:36 by roticv
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:
Posted on 2003-05-22 08:36:24 by AceEmbler