Finally got it, thank you
I really appreciate your help, Thankyou very much. I got what I neede to work, thankyou. I have just started programming not to long ago and am just starting to learn how to use the api. This is really cool, you can do just about anything with the api it seems. I am working on another problem which is : when you change the background color of the desktop in the desktop settings window, I am trying to figure out how windows does it. After change the registry value "Control Panel\Colors-Background, they are able to update or refresh the windows background according to the new color value in the registry. I watched the messages as I changed the background color but one of them is 0x0000031a and I don't know what that is. Once agian, thank you for your help. greatly appreciated.