News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Newb here.

Started by BRONiUS, December 28, 2006, 01:25:44 PM

Previous topic - Next topic

BRONiUS

Hi again!  :bg First of all, happy new year  :thumbu I have some questions about ramguru's fixed code.
1. Why when I launch any application it is ok, but when I want to change directory, it doesn't show anything.
2. Why "Gooo" button shows up only when you press on space where it should be, but isn't showing when you don't push it.

Luke

ramguru

Quote from: BRONiUS on January 10, 2007, 02:42:21 PM
1. Why when I launch any application it is ok, but when I want to change directory, it doesn't show anything.
Because I've commented function that doesn't exist in your file (which supposedly does that job)

        .If eax!=0
            invoke SendMessage, hList, LVM_DELETEALLITEMS, 0, 0
            invoke SetCurrentDirectory, addr buffer
;call FillList
        .else


Quote from: BRONiUS on January 10, 2007, 02:42:21 PM
2. Why "Gooo" button shows up only when you press on space where it should be, but isn't showing when you don't push it.
It's because of this code

    .ElseIf WinMsg==WM_SIZE
        mov eax,lParam
        mov edx,eax
        and eax,0FFFFH
        shr edx,16
        push eax
        invoke MoveWindow,hList, 0, 0, eax,edx,TRUE
        pop eax
        sub eax,50
        push eax
        Invoke MoveWindow,hEdit,0,0,eax,25,TRUE
        pop eax
        invoke MoveWindow,hButton,eax,0,50,25,TRUE

Windows just overlap

I think you should give more efforts, try to understand what you're doing, etc.