i have the following code and would like to know how i can put it into a procedure in which i can call it
procedure TForm1.FormCreate(Sender: TObject);
NewImage := TPicture.create;
StartButton := FindWindowEx
OldBitmap := SendMessage(StartButton,
at the moment this code looks for c:\windows\logo.bmp but i have converted it to look for a file in a resource file
what i would like is for the code above to be put into a procedure that i can call in a button click so with a different button i can change the start button bitmap.
eg procedure StartButtonChange
and on the button click
startButtonChange := LoadFromResourceName(hInstance,'PIC2');
i hope you can understand this!!!