Hi Everybody,

My question today is about using Iczelion's tutorials with RadASM.

I have got as far as Chapter 12 and have got very stuck. I am having problems with creating the edit box. Then I enter the code as shown, my edit box will not appear.
 
mov eax, uMsg
.IF eax==WM_CREATE
        invoke CreateWindowEx,NULL,ADDR EditClass,NULL,\
                  WS_VISIBLE or WS_CHILD or ES_LEFT or ES_MULTILINE or\
                  ES_AUTOHSCROLL or ES_AUTOVSCROLL,0,\
                  0,0,0,hWnd,EditID,\
                  hInstance,NULL
        mov hwndEdit,eax
        invoke SetFocus,hwndEdit

However, as I understand, in RadASM you create the edit box in the dialog editor and display it that way. If I do this I can see my edit box but cannot 'communicate' with it. What is the correct procedure for creating and communicating with commonents?
Posted on 2005-11-23 05:13:21 by Lightman
You specify as size 0,0,0,0. Of course you can not see your Edit Field.
Replace the 4 zeros with 0,0,500,500 and try again.
Posted on 2005-11-23 06:03:42 by JimmyClif
Oh, I double checked. Icz really used 0,0,0,0 for sizes but then he resizes the control during the WM_SIZE message. Did you already add following part:

    .ELSEIF uMsg==WM_SIZE
        mov eax,lParam
        mov edx,eax
        shr edx,16
        and eax,0ffffh
        invoke MoveWindow,hwndEdit,0,0,eax,edx,TRUE


If not - well that might explain it ;)
Posted on 2005-11-23 06:08:56 by JimmyClif