This code demonstrates a problem I am having running it on my Vista laptop. The code runs properly on my two other computers with XP. The problem is with the StretchBlt() function under %WM_PAINT of the PrintPreview callback. It returns a result of 0 for my Vista laptop, but 1 for my other two computers... same printers, same code, same compiler. I though that over the last year, I must have used the print preview feature on this laptop, but maybe not.
Although this technique is slow, it does give very accurate previews, even showing the slight differences for different printers due to their differing dead spaces. So I would like to keep the algorithm, but for the life of me, I can't detect what's wrong... so I am hoping that one of you GUI experts can spot what is going on. The code is attached as PrnPreview.bas, and any text or rtf file can be opened.
Although this technique is slow, it does give very accurate previews, even showing the slight differences for different printers due to their differing dead spaces. So I would like to keep the algorithm, but for the life of me, I can't detect what's wrong... so I am hoping that one of you GUI experts can spot what is going on. The code is attached as PrnPreview.bas, and any text or rtf file can be opened.
Comment