Points for ptmcomp: Why setClassLong isn't working
Posted on 2000-05-06
Hi, ptmComp. Please post the same answer you gave to my othe question and I'll give you the points.
In Delphi 5 I'm using setClassLong to replace the window class background brush but it's not working. I tried with a solid brush and a bitmap brush.
brushBackGround : HBrush;
bm := graphics.TBitmap.create;
// brushBackGround := createPatternBrush(bm.handle);
brushBackGround := createSolidBrush(clRed);
Application.CreateForm(TForm1, Form1); // form1 is an empty form
// setClassLong(form1.handle,GCL_HBrBackGround,brushBackGround); tried this, didn't work neither