Hallo, I am trying to remove some strange things in my program and I found something which im not sure why is not working.
Why does not the first example of setClassLongPrt work?
HBITMAP img = (HBITMAP)LoadImage(NULL, TEXT(imgPath.c_str()), IMAGE_BITMAP,640,480,LR_LOADFROMFILE);
HBRUSH brush = CreatePatternBrush(img);
// this does not work, is simply loads a white image
// This works, but here I get problems after the function have been called several times. Memory leak?