View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RAFAAJ2000[_2_] RAFAAJ2000[_2_] is offline
external usenet poster
 
Posts: 75
Default SendMessageString ...Maybe !!??

I have created a Window ( Button Class) using the ' CreateWindowEx ' API and
would like to dinamically change its Caption .

I have been trying the ' Send MessageString' API but without any luck :(

Here is part of my code :

Sub CreateButton()
lngBtnHndl = CreateWindowEx(0, "Button", "Test !", WS_CHILD, _
ActiveWindow.Width * 3 / 4, 0, 50, 25, Application.hwnd, 0, 0, 0)
SetParent lngBtnHndl, Application.hwnd
ShowWindow lngBtnHndl, SW_NORMAL
End Sub


Any one any ideas ?

Thanks.