Advertisement

Regions?¿?¿

Started by April 27, 2001 07:36 AM
-1 comments, last by Spartacus 23 years, 9 months ago
Can someone tell me how to set up a region. I want to attach a clipper to the backbuffer but i dont know how to set up the regions needed for the cliplist. I tried to do something like this but that doesnt work: RECT rcList[1] = {0, 0, 640, 480}; RGNDATA rgnData; rgnData.rdh.dwSize = sizeof(RGNDATAHEADER); rgnData.rdh.iType = RDH_RECTANGLES; rgnData.rdh.nCount = 1; rgnData.rdh.nRgnSize = sizeof(RECT)*rgnData.rdh.nCount; rgnData.rdh.rcBound = ??? rgnData.buffer = rcList; But that doesnt work because there is no conversion from RECT[1] to char[1] (rgnData.buffer = rcList). So what is the correct way to set up the region data. And what is the rgnData.rdh.rcBound member used for? Thanks, -René

Real programmers don't document, if it was hard to write it should be hard to understand

This topic is closed to new replies.

Advertisement