;FEM_GETSEARCHTEXT
;Another variant get text from fasmwIDE and search in my program word in all text.
macro searchT f,t{ local .ll,.l0,.l3
         mov  dword [t],"yes!"
        }
macro mFindReplaceBtns { local .ll,.l0,.l3
      xor     ecx,ecx
.ll:  mov     eax,ecx
      add     eax,IDC_UserComboFind
      cmp     [wparam],eax
      jnz     .l0
      invoke SendMessage,[FasmFeditHwnd],WM_GETTEXTLENGTH,0,0
      invoke SendMessage,[FasmFeditHwnd],dword WM_GETTEXT,dword eax,RichTxt
      mov dword [RichTxt+eax],0
      Msg RichTxt

      invoke SendMessage,[ComboFindTxt],WM_GETTEXT,400,dword GenTxt
      searchT GenTxt,RichTxt
      invoke SendMessage,[FasmFeditHwnd],dword WM_SETTEXT,dword 0,RichTxt
;invoke SendMessage,[FasmFeditHwnd],dword FEM_SETPOS,0, dword caret.Pose
      ret
.l0:  inc     ecx
      cmp     ecx,25 ;8*2+2
      jnz     .ll
      }

IDC_UserComboFind = 22000
btnXStart_ = 340
btnYStart_ = 26+22*5
invoke CreateWindowEx,0,'button','Find',dword WS_VISIBLE+WS_CHILD,dword btnXStart_,dword btnYStart_,dword 50,dword 22,[DLL_hwnd],dword IDC_UserComboFind,0,0
invoke CreateWindowEx,0,'button','Rplace',dword WS_VISIBLE+WS_CHILD,dword btnXStart_,dword btnYStart_+22*2,dword 50,dword 22,[DLL_hwnd],dword IDC_UserComboFind+1,0,0

invoke CreateWindowEx,0,'combobox',0,dword CBS_AUTOHSCROLL+WS_VISIBLE+WS_CHILD,\
          dword btnXStart_,dword btnYStart_+22,dword 258,dword 19,[DLL_hwnd],dword IDC_UserComboFind+20,0,NULL
mov  [ComboFindTxt],eax
invoke CreateWindowEx,0,'combobox',0,dword CBS_AUTOHSCROLL+WS_VISIBLE+WS_CHILD,\
          dword btnXStart_,dword btnYStart_+22*3,dword 258,dword 19,[DLL_hwnd],dword IDC_UserComboFind+21,0,NULL
mov  [ComboReplaceTxt],eax

jmp @f
ComboFindTxt      dd 0
ComboReplaceTxt   dd 0

caret.Pose         dd 0,0,0,0
@@: