View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
RB Smissaert RB Smissaert is offline
external usenet poster
 
Posts: 2,452
Default Setting the BackColor of a Static Window !!

I am sure it must be possible, but can't you achieve the same simpler with a
UserForm?

RBS

"RAFAAJ2000" wrote in message
...
Hi all.

I am not sure I should be asking this question here but since it is
somewhat
related to Excel here it goes :

I have created a Static Window via the "CreateWindowEx" API and placed it
floating over a worksheet Cell... With some tweaking and changing some
Styles
this Static window now works and looks just fine.

However, what I now need is to be able to change is its BackColor after
it's
been created.

I have tried the "SetBckColor" API, Sending as well as trapping the
"WM_CTLCOLORSTATIC" Window Message among other things but just can't
succeed
to change the backcolor of this newly created Static Window :(

I googled for an answer but no luck .

Anyone here has an answer to this one ?

Thank you.