
uglobal
  hPropEditor     dd 0    ; handle of property editor
endg

;----------------------------------------
; Creates property editor.
; Call this only once.
;----------------------------------------

proc InitPropEditor, .hParent
begin
        invoke  CreateWindowExW, WS_EX_CLIENTEDGE or WS_EX_CONTROLPARENT, cPropGridClassName, 0,                \
                                 WS_CHILD or WS_VISIBLE or WS_VSCROLL or WS_CLIPSIBLINGS or WS_CLIPCHILDREN or WS_TABSTOP,    \
                                 0, 0, 10, 10, [.hParent], 0, [hInstance], 0
        mov     ebx, eax
        mov     [hPropEditor], eax

        stdcall AttachToCell, ebx, [.hParent], MainLayout.cellPropEditor

        return
endp

